Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two IP's on FE 1

Status
Not open for further replies.

gb0mb

IS-IT--Management
May 30, 2007
177
US
I have two subnets and would like to put the default gateway of each subnet on the same interface.

Can I just assign the two gateways on sub interfaces of the FE interface?

Router(config)#interface fastethernet1.1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interface fastethernet 0/0.2
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shut

Waiting for my router to show up or I would just test it.
Thanks ahead of time.

Gb0mb

........99.9% User Error........
Ubuntu -- African for I can't install Gentoo
 
meant 0/0.1 for the first interface command.

Gb0mb

........99.9% User Error........
Ubuntu -- African for I can't install Gentoo
 
you need vlan encapsulation or just use a secondary ip address.




Spc NVARNG
[americanflag]
Tek-TIP Member 19,650
 
No Vlans, just want to put two IPs on the interface. I assume by secondary ips it is done via subinterfaces?

Thanks



Gb0mb

........99.9% User Error........
Ubuntu -- African for I can't install Gentoo
 
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#ip address 192.168.1.1 255.255.255.0 secondary
Router(config-if)#no shut

 
Ugh, it should be

Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#ip address 192.168.2.1 255.255.255.0 secondary
Router(config-if)#no shut
 
Thank you for the info. Thought it had to be sub interfaces.

Gb0mb

........99.9% User Error........
Ubuntu -- African for I can't install Gentoo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top