cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1414
Views
0
Helpful
4
Replies

Packet Tracer - How to assign a VLAN to 2800 router port

marianodaniel
Level 1
Level 1

Hello! I'm doing some tasks on PT. I found one where I have a 2800 Router and I'm trying to assign a VLAN to Fa0/1 but cannot seem to find the command to do so.

Router#show running-config:

Spoiler

Building configuration...

 

Current configuration : 779 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

!

!

!

ip dhcp pool Pool1

default-router 10.0.0.1

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

no ip domain-lookup

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/0

ip address dhcp

duplex auto

speed auto

!

interface FastEthernet0/0.2

encapsulation dot1Q 2

ip address dhcp

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

!

interface Vlan1

ip address 10.0.0.1 255.255.255.0

!

interface Vlan2

mac-address 000d.bd38.4b01

ip address 192.168.1.1 255.255.255.0

!

router rip

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end


 

4 Replies 4

Hello,

interface Fa0/1 is a layer 3 interface (as evidenced by the 'no ip address' configuration under that interface. You can only assign Vlans to layer 2 interfaces (or to subinterfaces, as you already did in your example)...

M02@rt37
VIP
VIP

Hello @marianodaniel 

Cisco 2811 router have got L3 interfaces. You can assign IP addresses but no vlan as you want to do.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Joseph W. Doherty
Hall of Fame
Hall of Fame

As like a VLAN access port?

If so, may not be possible on a 2800 native routed port.

Of course, routed ports often support subinterfaces, which allows a router to work with a switch trunk port.

ISRs might also support bridge ports, allowing a BVI (believe later IOSs changed terminology).

Again, not sure you can mix a SVI with a routed port.

Possible option, use an Ethernet module.

@marianodaniel hi, fa 0/0 and fa0/0 are routed ports. you cannot convert them to switch ports. but if you add module like HWIC-4ESW, you can configure VLAN on those new ports.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB