10-17-2003 08:11 AM - edited 03-02-2019 11:04 AM
Hi,
I'm abit confuse abt secondary ip and subinterface... when shd i use sec ip or sub-int? both seems to have the same effect...
Thanks
-Steven-
10-17-2003 08:24 AM
For example running on LAN interface:
That you run DOT1Q trunk between a switch and the router. I.e. intraVLAN trunk. Then each subinterface matches the tag for prefered VLAN.
Running secondary on each interface, you have two subnets on same media. Maybe this could be two broadcast domains in a Windows NBT structure (not to good).
When configuring PVC/ATM or FR, a subinterface lets toy configure specific things for each logical link. Like ponit-to-point and point-to-multipoint.
10-17-2003 08:37 AM
Secondary IP addresses allow you to have multiple IP subnets on the same Layer2 broadcast domain. Subinterfaces can be used with different encapsulations (like a trunk on Fast Ethernet or PVC on a serial link) to achieve separate broadcast domains on the same interface. The reason to use one over the other usually depends on the interaction with other features. For example, will seconday ip addresses be distributed automatically by your routing protocol? will traffic forwarded between subnets on the same interface be fast switch or process switched if they are secondary ip's vs subinterfaces. From the LAN perspective you should consider separate broadcast domains for your subnets. That is, subinterfaces and trunk versus secondary ip's.
The following are links that give configuration information and example scenarios for both cases:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fipr_c/ipcprt1/1cfipadr.htm
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/finter_c/icflanin.htm
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