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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Boson netsim help with moc network

Status
Not open for further replies.

NahRamp2

MIS
May 24, 2007
33
US
Configuring router on a stick seems so easy in the examples, but i'm having trouble communicating between vlans. I'm using the boson simulator with the following setup:

Router1
fa0/0 - no ip
fa0/0.192 - ip 192.168.1.1/24
encap dotq 192
fa0/0.172 - ip 172.16.1.1/24
encap dotq 172

Switch1
ip default-gw 192.168.1.1
vlan 1 (management 192.168.1.2/25)

fa0/1
switchport mode trunk
switchport trunk encapsulation dotq

fa0/2
pc 192.168.1.1

fa0/3
pc 172.16.1.2

fa0/4 192.168.1.4


All pc's can ping the their gateway and machines in their subnet, but can't perform multiple vlan communication.

Any help?
 
The native vlan goes under the main interface, not the subinterface for 802.1q tagging. Try this:

Router(config)#interface f0/0
Router(config-if)#description Native VLAN here
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#int f0/0.172
Router(config-subif)#decsription VLAN 172
Router(config-subif)#encapsulation dot1q 172
Router(config-subif)#ip add 172.16.1.1 255.255.255.0
Router(config-subif)#interface f0/0
Router(config-if)#no shut

Switch(config)#interface vlan 1
Switch(config-if)#ip add 192.168.1.2 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#vlan 172
Switch(config-vlan)#name Whatever
Switch(config-vlan)#int f0/1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport nonegotiate
Switch(config-if)#switchport trunk allowed vlan 1,172,1002-1005
Switch(config-if)#int f0/3
Switch(config-if)#switchport host
Switch(config-if)#switchport access vlan 172

HTH
 
Also, on the router, the "no shut" goes on the physical interface, not sub-interfaces. And the pc at 192.168.1.1 connected to fa0/2 on the switch needs to be something other than 192.168.1.1, since this is also the IP address of the router interface routing the VLANs. One more thing---I thought I had always put the native VLAn and all the VLANs under sub-interfaces, and the interface itself has no IP address, but the "no shut" command.

Burt
 
Burt,

Most of the older IOSes would not work with the native VLAN on a subinterface. The newer IOSes let you place the native VLAN on a subinterface, but you have to specify it:

Router(config)#interface f0/0.1
Router(config-subif)#encap dot1q native
Router(config-subif)#ip add x.x.x.x m.m.m.m

ISL always required all configuration on subinterfaces.
 
Ah...do you recall what version IOS this started? Thanks.

Burt
 
Don't know the exact version...I have a 12.2(21) enterprise code on some old 2610s and that supports the commands but won't move traffic between interfaces properly until I put native vlan on main interface. I also have 2811s with 12.4(9) advanced ip services that work fine with config on subifs. I have never had a problem with native vlan on main interfaces but I have with native vlan on subifs. Realistically, I use multilayer switches for intervlan routing instead of ROS.
 
Interesting---I have a 2620XM with advanced enterprise version 12.4(9) and I had the same problem...also using 2924XM switches...perhaps I will reconfigure them with VLAN1 on the interface itself---thanks.

Burt
 
Router1
fa0/0 - no ip
fa0/0.192 - ip 192.168.1.1/24
encap dotq 192
fa0/0.172 - ip 172.16.1.1/24
encap dotq 172

this looks okay, remember to issue no shut int int fa0/0, your physical interface

the config below needs further work. the native vlan is 1 no tagging happening there okay

trunk port communicates witht the rest of the VLANs, do not assign it to any VLAN to it.

chek that each PC is on the port with is designated vlan.



Switch1
ip default-gw 192.168.1.1
vlan 1 (management 192.168.1.2/25)

fa0/1
switchport mode trunk
switchport trunk encapsulation dotq

fa0/2
pc 192.168.1.1

fa0/3
pc 172.16.1.2

fa0/4 192.168.1.4
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top