10-23-2003 05:48 PM - edited 03-02-2019 11:13 AM
Is it possible to allow three/four different subnet to an interface??? How??
At the moment:
interface Ethernet0
ip address 192.168.100.254 255.255.255.0
How do I allow three/four other subnet through this interface
How do I allow traffic from
193.168.100.0 255.255.255.0
194.168.100.0 255.255.255.0
203.174.156.192 255.255.255.224
to travel through the 192.168.100.254 255.255.255.0 interface??
10-23-2003 06:20 PM
I assume you are referring to directly connected hosts on these subnets off that same interface. Then you have to use secondary interface addresses as follow:
interface Ethernet0
ip address 192.168.100.254 255.255.255.0
ip address 193.168.100.0 255.255.255.0 secondary
ip address 194.168.100.0 255.255.255.0 secondary
ip address 203.174.156.192 255.255.255.224 secondary
Also, don't forget to include these addresses in your routing protocol.
Hope this help,
10-23-2003 06:26 PM
A minor correction to Hritter's post, the addresses specified should be ip addresses and not network addresses.
You can configure secondary ip addresses on all those subnets, on the same router interface.
int e0
ip add 192.168.100.254 255.255.255.0
ip add 193.168.100.254 255.255.255.0 secondary
ip add 194.168.100.254 255.255.255.0 secondary
ip add 203.174.156.222 255.255.255.224 secondary
This should do it.
You can include these addresses in your routing protocol, so that they get advertised to other routers. If you plan to use a router on any of these secondary networks, and run EIGRP or OSPF, it wont work, because neighbors are not formed on secondary networks on either protocols.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide