NAT on two diff subinterface of single physical interface
i am having one ethernet port e0 and can i created two different subinterface like inter e0.1 and e0.2 and can i configure the NAT between two different subinterface so that if one subinterface haiving ISP address and other having local network address of my lan so i can provide internet to my internal lan.
I am having 2501 series router...
and give me more detail information aboute subinterfaces on ethernet port and its encapsulation.
Re: NAT on two diff subinterface of single physical interface
a subinterface is a logical interface, i.e. for ethernet you need an encapsulation dot1Q (802.1q) or ISL (cisco proprietary).
The requirement is, that the IOS and the hardware supports it - as a rule of thumb: a FastEthernet interface will usually support VLANs and subinterfaces. In case you would have support, the configuration would look like this:
description to ISP
encapsulation dot1Q 100
ip address 184.108.40.206 255.255.255.0
ip nat outside
description inside LAN
encapsulation dot1Q 200
ip address 10.10.1.1 255.255.255.0
ip nat inside
The maximum "speed of a subinterface" will be given by the physical interface, i.e. both subinterfaces in the example above share the 100Mbps of the physical interface.
Configuration examples and explanations can be found f.e. in "Routing Between VLANs Overview" and subsequent sections at
[toc:faq]The ProblemOn traditional switches whenever we have a trunk
interface we use the VLAN tag to demultiplex the VLANs. The switch needs
to determine which MAC Address table to look in for a forwarding
decision. To do this we require the switch to do...
[toc:faq]Introduction:Netdr is a tool available on a RSP720, Sup720 or
Sup32 that allows one to capture packets on the RP or SP inband. The
netdr command can be used to capture both Tx and Rx packets in the
software switching path. This is not a substitut...
IntroductionOSPF, being a link-state protocol, allows for every router
in the network to know of every link and OSPF speaker in the entire
network. From this picture each router independently runs the Shortest
Path First (SPF) algorithm to determine the b...