[P4-dev] Unable to set up veth interfaces for software switch

Chris Ho ho.chris4 at gmail.com
Tue Jun 20 14:38:31 EDT 2017


Thanks Calin,

the ports are all up now. However, the operation is still hanging at
'thrift was started' when I try to use 'sudo ./bmv2/run_bm.sh'. Do you know
what might cause this?

Thank you,

Chris

On Tue, Jun 20, 2017 at 1:31 PM Calin Cascaval <
cascaval at barefootnetworks.com> wrote:

> sudo bash veth_setup.sh
>
> --
> Thanks, Calin
>
> On Jun 20, 2017, at 11:25, Chris Ho <ho.chris4 at gmail.com> wrote:
>
> Hi,
>
> I am new to P4, and I would like to get the software switch running so I
> can develop software using P4. I have gotten through many of the steps for
> installation and the checks for the behavioral-model repository all work. I
> also have the compiler and PTF installed. However, when I try to run the
> veth_setup.sh script, I am given the following message:
>
> chris at chris-VirtualBox:~/Desktop/switch/tools$ sudo sh veth_setup.sh
> No of Veths is 18
> veth_setup.sh: 8: veth_setup.sh: let: not found
> veth_setup.sh: 9: [: -lt: argument expected
> 8: veth250 at veth251: <NO-CARRIER,BROADCAST,MULTICAST,UP,M-DOWN> mtu 1500
> qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000
>     link/ether 12:cb:fe:93:9f:ef brd ff:ff:ff:ff:ff:ff
> Actual changes:
> tx-checksumming: off
> tx-checksum-ip-generic: off
> tcp-segmentation-offload: off
> tx-tcp-segmentation: off [requested on]
> tx-tcp-ecn-segmentation: off [requested on]
> tx-tcp6-segmentation: off [requested on]
> udp-fragmentation-offload: off [requested on]
> Actual changes:
> tx-checksumming: off
> tx-checksum-ip-generic: off
> tcp-segmentation-offload: off
> tx-tcp-segmentation: off [requested on]
> tx-tcp-ecn-segmentation: off [requested on]
> tx-tcp6-segmentation: off [requested on]
> udp-fragmentation-offload: off [requested on]
> Actual changes:
> scatter-gather: off
> tx-scatter-gather: off
> tx-scatter-gather-fraglist: off
> generic-segmentation-offload: off [requested on]
> Actual changes:
> scatter-gather: off
> tx-scatter-gather: off
> tx-scatter-gather-fraglist: off
> generic-segmentation-offload: off [requested on]
> Cannot change large-receive-offload
> Cannot change large-receive-offload
> Cannot change receive-hashing
> Cannot change receive-hashing
>
> Running ifconfig -a shows that I only have veth250 and veth251 up, and I
> when I try to run the run_bm.sh script, I am given the following:
>
> chris at chris-VirtualBox:~/Desktop/switch$ sudo ./bmv2/run_bm.sh
> Calling target program-options parser
> Adding interface veth0 as port 0
> [13:22:59.412] [bmv2] [D] [thread 22575] Adding interface veth0 as port 0
> [13:22:59.420] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth2 as port 1
> [13:22:59.420] [bmv2] [D] [thread 22575] Adding interface veth2 as port 1
> [13:22:59.432] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth4 as port 2
> [13:22:59.432] [bmv2] [D] [thread 22575] Adding interface veth4 as port 2
> [13:22:59.441] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth6 as port 3
> [13:22:59.441] [bmv2] [D] [thread 22575] Adding interface veth6 as port 3
> [13:22:59.445] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth8 as port 4
> [13:22:59.445] [bmv2] [D] [thread 22575] Adding interface veth8 as port 4
> [13:22:59.453] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth10 as port 5
> [13:22:59.453] [bmv2] [D] [thread 22575] Adding interface veth10 as port 5
> [13:22:59.461] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth12 as port 6
> [13:22:59.461] [bmv2] [D] [thread 22575] Adding interface veth12 as port 6
> [13:22:59.475] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth14 as port 7
> [13:22:59.475] [bmv2] [D] [thread 22575] Adding interface veth14 as port 7
> [13:22:59.487] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth16 as port 8
> [13:22:59.487] [bmv2] [D] [thread 22575] Adding interface veth16 as port 8
> [13:22:59.493] [bmv2] [E] [thread 22575] Add port operation failed
> Adding interface veth250 as port 64
> [13:22:59.493] [bmv2] [D] [thread 22575] Adding interface veth250 as port
> 64
> Thrift server was started
>
> Then, the terminal output does not progress until I interrupt or kill the
> script.
> Any help at all would be greatly appreciated
>
> Thanks,
>
> Chris
>
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170620/8e94b3dd/attachment-0002.html>


More information about the P4-dev mailing list