Help configuring a VLAN on a Cisco Router (GNS3)

Good Morning Cisco Experts,
I’m trying to setup a simple Cisco lab in GNS3.  I have three devices (all of them are C2600 routers with an NM-16ESW module in them).  The first two routers are configured as endpoints.  The commands I input to do this are:

!WS1 CONFIGS
Config t
No ip routing
Ip default-gateway 192.168.100.254
Interface fa1/0
No switchport
Ip address 192.168.100.196 255.255.255.0
Description WS1
No shut

! !WS2 CONFIGS
Config t
No ip routing
Ip default-gateway 192.168.100.254
Interface fa1/0
No switchport
Ip address 192.168.100.197 255.255.255.0
Description WS2
No shut

The third device is the router.  The commands I have used to configure this device are as follows:

!R1 CONFIGS
Config t
Interface fa1/0
Switchport
Switchport access vlan2
Description CONNECTS WS1
No shut

Config t
Interface fa1/1
Switchport
Switchport access vlan2
Description CONNECTS WS1
No shut

When I do a show vlan-switch on R1, I can see that VLAN2 has been created on the router.  I can also see that fa1/0 and Fa1/1 have been assigned to VLAN2.

When I do a show ip interface brief Fa1/0 and fa1/1 shows line status = up and protocol = down.

It’s almost like the VLAN isn’t up.  I thought that the VLAN would come up when I added ports to it.

I’m just not sure what I’m missing.  Any help you could provide would be greatly appreciated.

Regards,
Nick
LVL 1
ndalmolin_13Asked:
Who is Participating?
 
AkinsdNetwork AdministratorCommented:
You still need to create SVIs or assign IP address to a routed interface or use subinterfaces
Which ever one you choose, the vlan configuration is the same
interface vlan 2
ip address 192.168.100.197 255.255.255.0

If possible, post a diagram to depict your setup. (A screen shot of the GNS 3 topology would suffice)
0
 
ndalmolin_13Author Commented:
You were right, I did not have an SVI configured.  Thanks.
0
 
Rakesh Madupu JNCIE-SP #02079 CCIE-SP#47613Network Development EngineerCommented:
Hi,

I am not sure why you would want to create an SVI in this case, you are doing routing and creating a layer-3 port by the command "no switchport". Vlan would automatically be created if you have the command "switchport access vlan x " and it shall create vlan x.

May be you should trying looking into trunkport if you have any or interface status. can you display "show vlan" from your device ?

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.