I am using Cisco 3570 Ethernet switch and Linex machine Red Hat3.4.2-6.fc3. My switch is having VLAN and routing feature.It supports 802.1Q. I have a situation where Linux PC participates in two VLANs,but its having only one NIC and cable connecting to switch. How does it possible in Linux. Can one NIC have more than VLANs? I am having differnet IP ranges (subnets).
What i have tried is like this: I assigned trunking to the switch port which is connneced to Linux PC. Than i have assigned two Different IP adderss(differnet subnets) on NIC with the help of Device aliase feature. First IP adderss is192.168.100.5 (default gateway: 18.104.22.168) and second IP adderss is 192.168.101.6 (default gateway: 22.214.171.124). Than i am tring to Ping both the addresses. IP 192.168.100.5 is pinging but the aliase IP 192.168.101.6 is not pinging. With this my exprimet to assign two IP address to one NIC failed
I would appriciate any input on this and feel lucky if it comes soon as i need this information very urgently.
Best Regards. Yash.