Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up VLAN on cisco switch

Status
Not open for further replies.

jamesjames1

Technical User
Jun 18, 2004
81
GB
Hi,

Just wondered if there was some information on configuring a cisco 2900 switch to support a VLAN through the fibre uplink?

Any help would be gr8 - ta

james
 
interface g1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allow vlan (vlan number)


be sure you create the vlans first on the switch :eek:)
 
.....assuming you mean trunking this switch to another switch hrough the SFP uplink
 
HI,

thanks for the reply. Yes trunking is what I need, I also need to create the VLan so that people using the VLan between both switches are not on the corporate network.

Is it easy to create a VLAN. And I suppose that if the VLAN is seperate from the LAN the IP address range doesnt matter *Providing no other switches are truncked to the switches...?

thanks for your help

 
interface vlan (vlan number)
name (name)

-------------
Address range doesn't matter as long as the hosts are on the same subnet. add the vlan to the switch, make sure it is being passed on the trunk ports, and add the vlan to the access ports. If you want those users to access the internet you will need to get into inter vlan routing.
 
Nice one.

Does the command "switchport trunk allow vlan (vlan number)" connect the VLAN to the access ports. Any info on inter VLAN routing.

From what I can remember routing VLan to VLan is clever stuff, some applications seem to struggle with this?

cheer...
 
switchport trunk allow vlan (vlan number)
Allows specified vlans on the switch to be trunked over the port.
ex: switchport trunk allow vlan 1,5,10,11

Access ports for users.
int fa1/0/1
switchport mode access
switchport access vlan (vlan number)


If you want both vlans to access the internet you are going to have to configure inter vlan routing on your layer 3 switch or router.

Layer 3 switch
vlan 1
ip add 10.1.1.1 255.255.255.0
vlan 2
ip add 10.2.1.1 255.255.255.0
vlan 3
ip add 10.3.1.1 255.255.255.0

router
int fa1/1
no ip add
no shut

int fa1/1.1
encap dot1q
ip add 10.1.1.1 255.255.255.0

int fa1/1.2
encap dot1q
ip add 10.2.1.1 255.255.255.0

int fa1/1.3
encap dot1q
ip add 10.3.1.1 255.255.255.0

CCNA, Network+
 
Got made redundant this morning so wont be needing the info any more - lol
 
Hi I need help selecting a 48 port PoE switch that I could connect to a 6509 through a ws-x6416 gbic 16 port module. I would also need the type of fiber connector for the 48 port switch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top