port group 1 switchport mode trunk ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface VLAN1 ip address 10.1.1.3 255.255.255.0 no ip directed-broadcast no ip route-cache ! ip default-gateway 10.1.1.1 ! line con 0 transport input none stopbits 1 line vty 0 4 password secret login line vty 5 15 login ! end
Catalyst 2948G-L3-01 配置 2948G-L3-01#show running-config Building configuration...
Current configuration: ! ! Last configuration change at 07:30:32 PST Fri Jun 23 2000 ! NVRAM config last updated at 07:30:33 PST Fri Jun 23 2000 ! version 12.0 no service pad service timestamps debug datetime msec localtime service timestamps log datetime msec localtime no service password-encryption ! hostname 2948G-L3-01 ! no logging console enable password verysecret ! clock timezone PST -8 clock calendar-valid ip subnet-zero ! ! ! interface Port-channel1 description Channel_to_2948G-01 no ip address no ip directed-broadcast hold-queue 300 in ! interface Port-channel1.1 encapsulation dot1Q 1 native no ip redirects no ip directed-broadcast ! interface Port-channel1.10 encapsulation dot1Q 10 ip address 10.10.10.2 255.255.255.128 no ip redirects no ip directed-broadcast standby 10 priority 100 standby 10 preempt standby 10 authentication C10-10 standby 10 ip 10.10.10.1 standby 10 track GigabitEthernet49 20 standby 10 track GigabitEthernet50 20 ! interface Port-channel1.15 encapsulation dot1Q 15 ip address 10.10.10.130 255.255.255.128 no ip redirects no ip directed-broadcast standby 15 priority 110 standby 15 preempt standby 15 authentication C10-15 standby 15 ip 10.10.10.129 standby 15 track GigabitEthernet49 20 standby 15 track GigabitEthernet50 20