>-----Original Message----- >From: vlan-bounces@xxxxxxxxxxxxxxx [mailto:vlan-bounces@xxxxxxxxxxxxxxx] On >Behalf Of Shashi Lad >Sent: Thursday, January 10, 2008 11:07 PM >To: vlan@xxxxxxxxxxxxxxx >Subject: Inter-vlan routing with Vconfig > >Updated .... > >Hi there, > >I m trying for inter vlan routing with vconfig. > > >Topology: > > > Linux-1 Linux-2 > ______________ > | | >PC1 ---------- |eth0 | ________ >10.10.10.10/8 | | | | > | eth2|====================| eth0 | > | | | | >PC2 ---------- |eth1 | |_______| >20.20.20.20/8 | | > |_____________| > > > >COnfiguration: > >Linux-1: [kernel 2.4] > >vconfig add eth2 10 >vconfig add eth2 20 > >brctl addbr br1 >brctl addif br1 eth0 >brctl addif br1 eth2.10 >ifconfig eth2.10 up >ifconfig br1 10.10.10.11/8 > >brctl addbr br2 >brctl addif br2 eth1 >brctl addif br2 eth2.20 >ifconfig eth2.20 up >ifconfig br2 20.20.20.21/8 > >Linux-2: [kernel 2.4] > >vconfig add eth0 10 >vconfig add eth0 20 >ifconfig eth0.10 10.10.10.12/8 up >ifconfig eth0.20 20.20.20.22/8 up > >echo 1 > /proc/sys/net/ipv4/ip_forwarding > >Ping from pc1 to pc2 is not working for me. Are you setting the route / gateway on pc1 to 10.10.10.12 and on pc2 to 20.20.20.22? Also, I noticed you specifically brought the VLAN interfaces up along with the brctl statements, I assume you brought eth0 and eth1 up on the Linux-1 box earlier. > >Same is working for me when i connect cisco router instead of Linux-2. >When i do traceroute .. packet is clearly routed from cisco router. I am guessing you used the same IP addresses for the interfaces when using the Cisco router. > >As ping was not working after assigning ip address on virtual interface >[eth2.10 & eth2.20] of linux-1 >i assigned ip address to bridge. > >for following command on Linux-2 > >cat /proc/net/vlan/eth0.20 >It was receiving packet but was not transmitting packets. >I also tried with open source zebra by enabling rip on Linux-2 system. > >I m new to this things. > >Any help will be appreciated. > >Thanks in advance, >SHashi > > >-- >http://www.fastmail.fm - Send your email first class > >_______________________________________________ >Vlan mailing list >Vlan@xxxxxxxxxxxxxxx >http://www.candelatech.com/mailman/listinfo/vlan _______________________________________________ Vlan mailing list Vlan@xxxxxxxxxxxxxxx http://www.candelatech.com/mailman/listinfo/vlan