To assign ip address on interface vlan 2 on the switch: Kindly have a look at To assign trunk from A-cisco switch(fiber connect to port 26) to B-cisco switch and A-cisco switch(fiber connect to port 27) to C-cisco switch if am correct,if not pls correct meĭo i need to put different ip range for 3 cisco switch for management and router?ĭo i need to do ip routing on each cisco switch? To go internet,i mean to do NAT, and below is plannned conf on 3 cisco switch named A,B,C
If you find this tutorial is helpful please kindly share to others.Today I got new cisco router 1900 series and i do know how to conf , Now you should understand on how to create and configure vlan on Linux and Cisco Catalyst switch. To make it permanent or active at boot, simply add the following lines into the rc.local file (e.g Centos: /etc/rc.local Slackware: /etc/rc.d/rc.local): modprobe 8021q Reply from 192.168.12.254: bytes=32 time=2ms TTL=64Įverything we have done above is temporary configuration, meaning that it will be cleared from configuration when we reboot or shutdown the linux box. Test ping to Linux box using vlan ip address Make sure the cables are connected properly to each ports on the devices.ĥ. Now it is the time to test whether PC-A and PC-B can ping to the same network on the Linux box. The configurations on both Linux box and Switch have completed. Switch#show running-config interface f0/16 Switch#show running-config interface f0/15 Switch#show running-config interface f0/14 Switch(config-if)#switchport trunk allowed vlan 11,12 Switch(config-if)#description Trunk_To_Linux_Router Below are the commands: switch#conf terminal We will use port Fa0/16 as trunk port and Fa0/14 and Fa0/15 as vlan access port connected to PC-A and PC-B respectively. 1 port is for trunk between the switch and Linux box and 2 ports are for PC-A and PC-B. Now we have to configure 3 ports in the cisco catalyst switch. Vlan 11 and 12 have been successfully added to the database and active. switch#conf terminalĮnter configuration commands, one per line. So those vlan must be added into the vlan database of the switch. Configure cisco catalyst switch, add vlan database, configure interface access vlan and trunkĪs said before, we use vlan 11 and vlan 12 on this tutorial. Now we are going to configure vlan and trunk on the Cisco Catalyst switch.Ĥ. Until this step, creating and configuring vlans have been done on the Linux box. Make sure that the IP addresses were assigned successfully on the interfaces. Now we assign IP address on those interfaces using ifconfig command as below: ifconfig eth1.11 192.168.11.254 netmask 255.255.255.0 up The vlan interfaces were successfully created on the previous step. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0Įth1.12 Link encap:Ethernet HWaddr 00:30:48:BF:4E:BDģ. RX packets:0 errors:0 dropped:0 overruns:0 frame:0 ifconfig -aĮth1.11 Link encap:Ethernet HWaddr 00:30:48:BF:4E:BD You also see the vlan interfaces by typing ‘ifconfig -a’ command. Linux will consider these as another network devices so you can configure and assign IP address like other. These commands above will create devices eth1.11 and eth1.12 to your system. To create a vlan interface, use ‘vconfig add’ command as below: vconfig add eth1 11 We will create interface vlan 11 and vlan 12 on this eth1 interface. We have to bring the interface up without IP address assigned to it before we can use it. We will use eth1 interface in the Linux box. If you see something similar like above, the 8021q has been successfully loaded. Make sure the module was successfully loaded by running the ‘lsmod’ again lsmod |grep 802 If there is nothing shown by lsmod command, it means the module has not been loaded yet. You can check whether it is already loaded or not by using ‘lsmod’ command. This tutorial is based-on network diagram below:īy default the 802.1q module is not loaded so we firstly have to load it. 2 PC/Laptop running Windows/Linux/BSD/MacOSX It should be applicable on other Linux distros such as Slackware, Ubuntu, Fedora, Debian, etc.ģ.
Linux installed on a PC with one or more NICs (Network Interface Card). In this article I want to share to you on how to create and configure vlan on Linux through Cisco Catalyst Switch.ġ.