#configure terminal | Enter the Configure mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Add bridge 1 to the spanning-tree table. |
(config)#vlan database | enter VLAN mode |
(config-vlan)#vlan 2 bridge 1 | Create VLAN and add it to bridge 1 |
(config)#exit | Exit VLAN mode |
(config)#interface eth3 | Specify the interface eth3 to be configured, and Enter interface mode. |
(config-if)#shutdown | Shut down the interface. |
(config-if)#switchport | Configure the interface as a switch port. |
(config-if)#bridge-group 1 | Associate the interface eth1 with bridge-group 1. |
(config-if)#switchport mode trunk | Configure the port as an trunk port. |
(config-if)#switchport trunk allowed vlan all | Add VLAN to trunk |
(config-if)#no shutdown | Bring up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify interface eth1 to be configured. |
(config-if)#shutdown | Shut down the interface. |
(config-if)#switchport | Configure the interface as a switch port. |
(config-if)#bridge-group 1 | Associate interface eth1 with bridge-group 1. |
(config-if)#switchport mode trunk | Configure the port as an trunk port. |
(config-if)#switchport trunk allowed vlan all | Add VLAN to trunk |
(config-if)#no shutdown | Bring up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Specify interface eth2 to be configured. |
(config-if)#shutdown | Shut down the interface. |
(config-if)#switchport | Configure the interface as a switch port. |
(config-if)#bridge-group 1 | Associate interface eth2 with bridge-group 1. |
(config-if)#switchport mode trunk | Configure the port as an trunk port. |
(config-if)#switchport trunk allowed vlan all | Add VLAN to trunk |
(config-if)#no shutdown | Bring up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface vlan1.2 | Specify interface vlan1.1 to be configured. |
(config)#ip address 1.2.3.4/24 | Specify IP address |
(config-if)#igmp snooping mrouter interface eth1 | Configure this port as a multicast router port |
(config-if)#exit | Exit interface mode |