cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1019
Views
9
Helpful
5
Replies

InterVLAN can not ping problem with Dynamipsgui

mar.stanley
Level 1
Level 1

Switch1 in vlan2 ping 10.10.2.1 vlan 1 of Switch2 no response

Switch using 3640 image

Router using 7200 image

f1/0 10.10.1.2 - f0/0 Switch1 172.16.0.3 f0/2 - P0/0

                                f0/1

Router                         |

                                f0/1

f1/1 172.16.0.2 - f0/0 Switch2 10.10.2.1 f0/2 - P0/1

Router1

config t

int f1/1

speed 100

duplex full

ip address 172.16.0.2 255.255.0.0

no shutdown

int f1/0

speed 100

duplex full

ip address 10.10.1.2 255.0.0.0

no shutdown

end

Switch1

config t

int f0/0

speed 100

duplex full

end

//vtp domain SampleDomain

vlan database

vlan 2

config t

int vlan 2

ip address 172.16.0.3 255.255.0.0

no shutdown

exit

ip default-gateway 172.16.0.2

end

Switch2

config t

int f0/0

speed 100

duplex full

end

config t

int range f0/0

switchport mode access

switchport access vlan 1

int vlan 1

ip address 10.10.2.1 255.0.0.0

no shutdown

exit

ip default-gateway 10.10.1.2

end

config t

int range f0/2

switchport mode access

switchport access vlan 1

int vlan 1

ip address 10.10.2.1 255.0.0.0

no shutdown

exit

ip default-gateway 10.10.1.2

end

1 Accepted Solution

Accepted Solutions

Hi Stanely,

Get idea from Here:

Create sub-interfaces, set 802.1Q trunking protocol and ip address on each sub-interface

Router(config)#interface f0/0
Router(config-if)#no shutdown

(Note: The main interface f0/0 doesn’t need an IP address but it must be turned on)

Router(config)#interface f0/0.0
Router(config-subif)#encapsulation dot1q 15
Router(config-subif)#ip address 192.168.15.1 255.255.255.0
Router(config-subif)#interface f0/0.1
Router(config-subif)#encapsulation dot11 20
Router(config-subif)#ip address 192.168.20.1 255.255.255.0

(Note: In the “encapsulation dot1q 15″ command, 15 is the VLAN ID this interface operates in)

Configure VLAN

Switch(config)#vlan 15
Switch(config-vlan)#name SALES
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name TECH

Set ports to access mode & assign ports to VLAN

Switch(config)#interface range fa0/1
Switch(config-if)#no shutdown
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 15
Switch(config-if)#interface range fa0/3
Switch(config-if)#no shutdown
Switch(config-if)#switchport mode access
Switch(config-if)# switchport access vlan 20

see the example:If you are configuring on layer 3 switch:

ip routing
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 20
switchport mode access

interface Vlan15
ip address 192.168.15.1 255.255.255.0
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0

And on hosts just assign IP addresses and default gateways (to the corresponding interface VLANs) -> hosts in different VLANs can communicate.

Regards

Please rate if it helps

View solution in original post

5 Replies 5

cadet alain
VIP Alumni
VIP Alumni

Hi,

post a diagram please because it's not easy to see what you did.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

host1b should be able to ping host2b, however, i do not know how to simulate pc in dynamipsgui though i configured XPC

so, i try to ping host2a from host1b

later, i try to perform inter-vlan routing by MultiLayer Switch

close all things and start again, then, shutdown ports in router

switch 2 can not ping switch 1's default gateway of VLAN 2

i am not sure 3640 whether it is multi layer switch, can dynamipsgui simulate intervlan routing by multilayer switch?

Hi Stanely,

Get idea from Here:

Create sub-interfaces, set 802.1Q trunking protocol and ip address on each sub-interface

Router(config)#interface f0/0
Router(config-if)#no shutdown

(Note: The main interface f0/0 doesn’t need an IP address but it must be turned on)

Router(config)#interface f0/0.0
Router(config-subif)#encapsulation dot1q 15
Router(config-subif)#ip address 192.168.15.1 255.255.255.0
Router(config-subif)#interface f0/0.1
Router(config-subif)#encapsulation dot11 20
Router(config-subif)#ip address 192.168.20.1 255.255.255.0

(Note: In the “encapsulation dot1q 15″ command, 15 is the VLAN ID this interface operates in)

Configure VLAN

Switch(config)#vlan 15
Switch(config-vlan)#name SALES
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name TECH

Set ports to access mode & assign ports to VLAN

Switch(config)#interface range fa0/1
Switch(config-if)#no shutdown
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 15
Switch(config-if)#interface range fa0/3
Switch(config-if)#no shutdown
Switch(config-if)#switchport mode access
Switch(config-if)# switchport access vlan 20

see the example:If you are configuring on layer 3 switch:

ip routing
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 20
switchport mode access

interface Vlan15
ip address 192.168.15.1 255.255.255.0
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0

And on hosts just assign IP addresses and default gateways (to the corresponding interface VLANs) -> hosts in different VLANs can communicate.

Regards

Please rate if it helps

Hi,

in GNS3 you can do intervlan routing with SVIs using the "L3 switch" which is a router platform with a 16 port ethernet switch module( NM16-ESW).

to simulate hosts: take a router and disable ip routing and configure a default-gateway:

conf t

no ip routing

ip default-gateway x.x.x.x

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

success now, exact follow the tutorial in my hand get error because no real pc exist

in switch 2, config have to change and separate to write, it is easy to be wrong when use range

and the diagram remind me, i found that i miss the link between switch 1 and switch 2, in experiment of tutorial center may have already set up this

link or my tutorial missing this part, sorry, it's my first time to use dynamipsgui and my first time

to set up cisco devices, luckily fix this in one week