docker run --rm -it --privileged -v /tmp/p4mn:/tmp \
-v${WORKSPACE}/routing:/routing -w/routing/trellis \
--name p4trellis --hostname p4trellis \
-p
50001
-
50030
:
50001
-
50030
\
--env PYTHONPATH=/root \
--entrypoint python opennetworking/p4mn:stable trellisp4.py --onos-ip
127.0
.
0.1
and the I got the mininet prompt. At the prompt, the 'pingall' command is failing for all the hosts. I am able ot see the Trellis topology in the ONOS Web GUI2.
I ran the following commands as well:
-------------
$ cd /tmp/p4mn
$ onos-netcfg localhost bmv2-s204-netcfg.json
$ onos-netcfg localhost bmv2-s205-netcfg.json
$ onos-netcfg localhost bmv2-s226-netcfg.json
$ onos-netcfg localhost bmv2-s227-netcfg.json
-----
I suspect that the configuration in trellisp4.json or the IP addresses assigned to h1, h2, h3, h4 in the trellisp4.py file might be incorrect.
I had cloned the repo with the command: git clone https:
//github
.com
/opennetworkinglab/routing/
In the mininet h1, h2 has the following IP addresses:
mininet> py h1.IP()
10.0.0.1
mininet> py h2.IP()
10.0.0.2
but in the trellisp4.py, the h1 is created with the folllowing:
h1 = self.addHost('h1', cls=RoutedHost, mac='00:aa:00:00:00:01', ips=['
10.0.2.1/24'], gateway='10.0.2.254')
h2 = self.addHost('h2', cls=TaggedRoutedHost, mac='00:aa:00:00:00:02', ips=[
'10.0.2.2/24'], gateway='10.0.2.254', vlan=10)
I think, the ping is failing due to the mismatch of the IP subnets. I would greatly appreciate if you could confirm whether the configuration and the IP addresses are correctly configured.