Catalyst 2950 SwitchCat2950#Cat2950#conf tEnter configuration commands, one per line. End with CNTL/Z.!-- The VLAN Trunk Protocol (VTP) mode is set to server,!-- and the VTP domain name to is set to cisco.Cat2950(config)#vtp mode serverSetting device to VTP SERVER modeCat2950(config)#vtp domain ciscoChanging VTP domain name from VitalCom to cisco!-- Created two VLANs: VLAN10 and VLAN20.Cat2950(config)#vlan 10Cat2950(config-vlan)#exitCat2950(config)#vlan 20Cat2950(config-vlan)#exit!-- Configured ports Fa0/5 through Fa0/14 in VLAN10,!-- and ports fa0/15 through Fa0/26 in VLAN20.Cat2950(config)#int range fa0/5 - 14Cat2950(config-if-range)#switchport access vlan 10Cat2950(config-if-range)#exitCat2950(config)#int range fa0/15 - 26Cat2950(config-if-range)#switchport access vlan 20Cat2950(config-if-range)#^ZCat2950#00:32:39: %SYS-5-CONFIG_I: Configured from console by console!-- Configured the management interface so that the switch!-- can be accessed remotely by using Telnet.Cat2950#conf tCat2950(config)#int vlan 10Cat2950(config-if)#ip address 10.10.10.10 255.255.255.0Cat2950(config-if)#no shutdown00:24:07: %LINK-3-UPDOWN: Interface Vlan10, changed state to upCat2950(config-if)#^Z00:24:12: %SYS-5-CONFIG_I: Configured from console by consoleCat2950#conf tEnter configuration commands, one per line. End with CNTL/Z.!-- Configured the default-gateway, which is the IP address of the sub-interface!-- on the router for VLAN 10, so that the switch can be accessed from any VLAN.Cat2950(config)#ip default-gateway 10.10.10.1!-- Configured a logical channel interface.Cat2950(config)#int port-channel 1Cat2950(config-if)#exit!-- Ports are assigned to the logical channel interface to form an EtherChannel.!-- Note: The channel mode on the switch is set to on because the Cisco 7200!-- router on the other end does not support Port Aggregation Protocol(PAgP).Cat2950(config)#int fa0/2Cat2950(config-if)#channel-group 1 mode onCat2950(config-if)#exitCat2950(config)#00:25:38: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up00:25:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1,changedstate to upCat2950(config)#int fa0/3Cat2950(config-if)#channel-group 1 mode onCat2950(config-if)#exit!-- To configure trunking over EtherChannel, trunking!-- is enabled over the logical channel interface.Cat2950(config)#int port-channel 1Cat2950(config-if)#switchport mode trunkCat2950(config-if)#00:27:14: %LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/2, changed state to down00:27:14: %LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/3, changEd state to down00:27:14: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1,changedstate to down00:27:17: %LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/2, changEd state to up00:27:17: %LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/3, changEd state to up00:27:18: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up00:27:19: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1,changedstate to up!-- Configured VLAN10 as the Native VLAN for untagged traffic.Cat2950(config-if)#switchport trunk native vlan 10Cat2950(config-if)#^Z00:24:12: %SYS-5-CONFIG_I: Configured from console by consoleCat2950# Cisco 7200 RouterCisco7200#Cisco7200#conf tEnter configuration commands, one per line. End with CNTL/Z.!-- Created a logical channel interface to form an EtherChannel.Cisco7200(config)#int port-channel 1Cisco7200(config-if)#exit!-- The ports fa3/0 and fa4/0 are configured as members of the!-- logical channel to form an EtherChannel group.Cisco7200(config)#int fa3/0Cisco7200(config-if)#channel-group 1FastEthernet3/0 added as member-1 to port-channel1Cisco7200(config-if)#exitCisco7200(config)#00:25:06: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1,changedstate to upCisco7200(config)#int fa4/0Cisco7200(config-if)#channel-group 1FastEthernet4/0 added as member-2 to port-channel1Cisco7200(config-if)#exit!-- Configured sub-interfaces over port-channel for VLAN10 and VLAN20 toconfigure!-- trunking over EtherChannel. The IP address is assigned to InterVLAN routing.!-- Configured VLAN10 as the Native VLAN for untagged traffic.Cisco7200(config)#int port-channel 1.10Cisco7200(config-subif)#encapsulation dot1Q 10 nativeCisco7200(config-subif)#ip address 10.10.10.1 255.255.255.0Cisco7200(config-subif)#exitCisco7200(config)#int port-channel 1.20Cisco7200(config-subif)#encapsulation dot1Q 20Cisco7200(config-subif)#ip address 10.10.11.1 255.255.255.0Cisco7200(config-subif)#exitCisco7200(config)#exitCisco7200#

评论