cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
334
Views
0
Helpful
2
Replies

vlan routing.

sang-bong.lee
Level 1
Level 1

I set up router and switch to check vlan routing. below is the configuration I made. but ping is not successd.

could you please tell me what's wrong with my config?

[Router]

interface FastEthernet0/0

no ip address

duplex auto

speed auto

!

interface FastEthernet0/0.1

encapsulation dot1Q 2

ip address 10.43.2.1 255.255.255.0

!

interface FastEthernet0/0.2

encapsulation dot1Q 6

ip address 10.43.6.1 255.255.255.0

[Switch]

interface FastEthernet0/1

switchport access vlan 2

switchport mode access

!

interface FastEthernet0/2

switchport mode trunk

!

Switch#ping 10.43.2.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.43.2.1, timeout is 2 seconds:

.....

Success rate is 0 percent (0/5)

2 Replies 2

bmcginn
Level 3
Level 3

Hi there,

Depending on the model of switch you're using, the encapsulation may be required for the trunk port.

ie:

interface fa0/2

switchport trunk encapsulation dot1q

switchport mode trunk

Also, you should check to ensure that your VLAN 2 SVI is working and not shutdown. (switches default to vlan1).

Have you created the actual VLAN on the switch?

you should also check to ensure you have the default gateway on the switch.

good luck!

Brad

glen.grant
VIP Alumni
VIP Alumni

On the switch if you do a "show vlan" does vlan 2 and 6 show active ? If not you have not created the layer 2 vlan on the switch side . The rest of the config looks ok .

Review Cisco Networking products for a $25 gift card