Inter-vlan routing with Vconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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.

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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux