cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
477
Views
0
Helpful
3
Replies

same VLAN on routed and switched inteface of router

jasonww04
Level 1
Level 1

Why is f0/0/2 not working?

interface GigabitEthernet0/0

description LAN

no ip address

ip nat inside

ip virtual-reassembly

load-interval 30

duplex auto

speed auto

!

!

interface GigabitEthernet0/0.1

encapsulation dot1Q 206

ip address 10.192.28.1 255.255.255.0

ip nat inside

ip virtual-reassembly

!

interface GigabitEthernet0/0.2

encapsulation dot1Q 2

ip address 192.168.28.1 255.255.255.0

ip nat inside

ip virtual-reassembly

!

!

interface FastEthernet0/0/2

switchport access vlan 206

!

3 Replies 3

cadet alain
VIP Alumni
VIP Alumni

Hi,

delete your subinterface config and create  interface VLAN 206 and give it an ip address in the correct subnet.

Do the same for other VLAN in a different subnet.

Regards.

Alain

Don't forget to rate helpful posts.

delete G0/0.1 and G0/0.2

create int vlan 206 and int vlan 2

put an IP on each int for the correct subnet

Do I have to make G0/0 a trunk?

Hi,

Do I have to make G0/0 a trunk?

No you don't need to , all hosts on the access ports will use the vlan interfaces to route.

Don't forget to give ip of correct vlan interface as default-gateway for hosts.

Alain.

Don't forget to rate helpful posts.