[linux-vrf-core] (no subject)
Status: Beta
                
                Brought to you by:
                
                    jleu
                    
                
            | 
     
      
      
      From: <mat...@ne...> - 2006-09-28 11:26:55
      
     
   | 
I don't use the same IPs, looking at: > ifconfig eth0.201 10.201.1.50 netmask 255.255.255.0 broadcast 10.201.1.255 > ifconfig eth0.202 10.202.1.50 netmask 255.255.255.0 broadcast 10.202.1.255 Please answer me the following questions: Is it wrong to set the IPs with the 'ifconfig' command? How can I set the broadcast with 'ip' command? And why, does Linux-vrf not work? Is there another known bug? Thanks and Regards Matthias Reply to: There is a known bug with the route cache, as a simple test case try using different IPs on the VRFs. If that works and your 'same IP' still doesn't work, then I think this is due to the route cache bug, and I will try to find time to investigate it. BTW the 'route' and 'ifconfig' utilities are not 'VRF' aware. You will want to use the 'ip' utility to check the status of VRF related configurations. On Wed, Sep 27, 2006 at 09:48:42AM +0200, mat...@ne... wrote: > Getting started, > > I have successfully compiled the kernel. Than I add vlans. > modprobe 8021q > vconfig eth0 201 > vconfig eth0 202 > > After that I added vrfs like this: > ip vrf add 1 > ip vrf add 2 > > Now I set those vrfs to the vlans???.. > ip link set eth0.201 vrf 1 > ip link set eth0.202 vrf 2 > > After that I set up the IP-Address > ifconfig eth0.201 10.201.1.50 netmask 255.255.255.0 broadcast 10.201.1.255 > ifconfig eth0.202 10.202.1.50 netmask 255.255.255.0 broadcast 10.202.1.255 > > But after this commands I can???t ping the vrfs > ping 10.201.1.1 > chvrf 1 ping 10.201.1.1 > ?? connect: Network is unreachable > > I worried about that. > ???route ???n??? shows: > > Destination Gateway Genmask Flags Metric Ref Use > Iface > 172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 > eth0 > 0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 > eth0 > 10.201.1.0 0.0.0.0 255.255.255.0 U 0 0 0 > eth0.201 > 10.202.1.0 0.0.0.0 255.255.255.0 U 0 0 0 > eth0.202 > > ???ifconfig??? shows: > > eth0 Link encap:Ethernet HWaddr 00:0E:0C:4C:34:37 > inet addr:172.16.3.34 Bcast:172.16.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:2265 errors:0 dropped:0 overruns:0 frame:0 > TX packets:914 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:179137 (174.9 KiB) TX bytes:104052 (101.6 KiB) > Base address:0xee80 Memory:defa0000-defc0000 > > eth0.201 Link encap:Ethernet HWaddr 00:0E:0C:4C:34:37 > inet addr:10.201.1.50 Bcast:10.201.1.255 Mask:255.255.255.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > eth0.202 Link encap:Ethernet HWaddr 00:0E:0C:4C:34:37 > inet addr:10.202.1.50 Bcast:10.202.1.255 Mask:255.255.255.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:8 errors:0 dropped:0 overruns:0 frame:0 > TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) > > > ???ip route show??? shows: > > 172.16.0.0/16 dev eth0 proto kernel scope link src 172.16.3.34 > default via 172.16.0.1 dev eth0 > 10.201.1.0/24 dev eth0.201 proto kernel scope link src 10.201.1.50 vrf > 1 > 10.202.1.0/24 dev eth0.202 proto kernel scope link src 10.202.1.50 vrf > 2 > > And ???ip addr??? shows: > 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > 2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 > link/ether 00:0e:0c:4c:34:37 brd ff:ff:ff:ff:ff:ff > inet 172.16.3.34/16 brd 172.16.255.255 scope global eth0 > 3: eth0.0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop > link/ether 00:0e:0c:4c:34:37 brd ff:ff:ff:ff:ff:ff > 4: eth0.201: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue vrf 1 > link/ether 00:0e:0c:4c:34:37 brd ff:ff:ff:ff:ff:ff > inet 10.201.1.50/24 brd 10.201.1.255 scope global eth0.201 > 5: eth0.202: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue vrf 2 > link/ether 00:0e:0c:4c:34:37 brd ff:ff:ff:ff:ff:ff > inet 10.202.1.50/24 brd 10.202.1.255 scope global eth0.202 > > > Please help me to ping the vrfs. > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > linux-vrf-core mailing list > lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-vrf-core -- James R. Leu jl...@mi...  |