I am playing with some equipment with the purpose of learning how things work. I have 2 linux servers connected to a router, each via the ethernet port. I think I should be able to create subinterfaces on the linux machines with ip addresses in different subnets. I think I should be able to ping any subinterface from one server to the other. Should I configure subinterfaces on the router and use them as the default gw for the server?
I have tried a few configurations but I can only ping the one interface on the router that is on the native vlan. I have not been successful in pinging across the router.
Any help would be very appreciated.
to be able to use vlan based subinterfaces both the router and the linux boxes have to agree on:
encapsulation : 802.1Q
and vlan id tag
no ip address
enc dot1q 10
ip address 10.10.10.1 255.255.255.0
enc dot1q 20
ip address 10.10.11.1 255.255.255.0
the same has to be done on the linux boxes with the appropriate commands.
Hope to help