Search this Blog

Thursday, February 17, 2011

how to create vlan on cisco switch 3560G and do routing

We managed to add ip address and default gateway to cisco switch and able to check via telnet

We have 3 cisco switch and we want to setup vlan and all vlan should be able to reach vlan8 as on picture attached and NATting is done on pfsense.

---opensource

Initial we have 192.168.3.1 gateway and mask 255.255.255.0 on pfsense,and the rest mean 192.168.3.2-192.168.3.254 on network,Now we want to have vlan started to subnet as attached.How can we go on each cisco switch,cause all servers and cisco switch belong to vlan8.pfsenseVlan.JPGsubnet.JPG

Tips:

To create vlan 8 on the switch:

switch# conf t

switch(conf)# vlan 8

switch(conf)# exit

To assign ip address on interface vlan 8 on the switch:

switch# conf t

switch(conf)# int vlan 8

switch(conf-int)# ip address 192.168.3.129 255.255.254.0

switch(conf)# end

To assign L2 portson the switch to vlan 8:

switch# conf t

switch(conf)# int gi0/1

switch(conf-int)# switchport mode access

switch(conf-int)#switchport access vlan 8

switch(conf)# end

Following this you can connect a PC on gi0/1 and assign an IP address in the vlan 8 range as mentioned in your diagram. The default gateway on the PC will be IP address if interface vlan 8 (192.168.3.129)

Similarly configure other switches also. For more info visit here:

Citation - This blog post does not reflect original content from the author. Rather it summarizes content that are relevant to the topic from different sources in the web. The sources might include any online discussion boards, forums, websites and others.

No comments :

Post a Comment

 
/* Google Analytics begin ----------------------------------------------- */ /* Google Analytics end ----------------------------------------------- */