02-10-2024 01:01 PM - edited 02-10-2024 01:03 PM
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:
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
02-10-2024 01:13 PM
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)...
02-10-2024 01:13 PM
Hello @marianodaniel
Cisco 2811 router have got L3 interfaces. You can assign IP addresses but no vlan as you want to do.
02-10-2024 01:17 PM
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.
02-10-2024 06:24 PM
@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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide