网络通信 频道

Catalyst 2948G-L3配置样例

interface Port-channel11.110
  encapsulation dot1Q 110
  ip address 10.10.110.3 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 110 priority 110
  standby 110 preempt
  standby 110 authentication C10-110
  standby 110 ip 10.10.110.1
  standby 110 track GigabitEthernet49 20
  standby 110 track GigabitEthernet50 20
 !
 interface Port-channel11.115
  encapsulation dot1Q 115
  ip address 10.10.110.131 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 115 priority 100
  standby 115 preempt
  standby 115 authentication C10-115
  standby 115 ip 10.10.110.129
  standby 115 track GigabitEthernet49 20
  standby 115 track GigabitEthernet50 20
 !
 interface Port-channel12
  description Channel_to_2948G-12
  no ip address
  no ip directed-broadcast
  hold-queue 300 in
 !
 interface Port-channel12.1
  encapsulation dot1Q 1 native
  no ip redirects
  no ip directed-broadcast
 !
 interface Port-channel12.120
  encapsulation dot1Q 120
  ip address 10.10.120.3 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 120 priority 110
  standby 120 preempt
  standby 120 authentication C10-120
  standby 120 ip 10.10.120.1
  standby 120 track GigabitEthernet49 20
  standby 120 track GigabitEthernet50 20
 !
 interface Port-channel12.125
  encapsulation dot1Q 125
  ip address 10.10.120.131 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 125 priority 100
  standby 125 preempt
  standby 125 authentication C10-125
  standby 125 ip 10.10.120.129
  standby 125 track GigabitEthernet49 20
  standby 125 track GigabitEthernet50 20
 !
 interface Port-channel13
  description Channel_to_2948G-13
  no ip address
  no ip directed-broadcast
  hold-queue 300 in
 !
 interface Port-channel13.1
  encapsulation dot1Q 1 native
  no ip redirects
  no ip directed-broadcast
 !
 interface Port-channel13.130
  encapsulation dot1Q 130
  ip address 10.10.130.3 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 130 priority 110
  standby 130 preempt
  standby 130 authentication C10-130
  standby 130 ip 10.10.130.1
  standby 130 track GigabitEthernet49 20
  standby 130 track GigabitEthernet50 20
 !
 interface Port-channel13.135
  encapsulation dot1Q 135
  ip address 10.10.130.131 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 135 priority 100
  standby 135 preempt
  standby 135 authentication C10-135
  standby 135 ip 10.10.130.129
  standby 135 track GigabitEthernet49 20
  standby 135 track GigabitEthernet50 20
 !
 interface Port-channel14
  description Channel_to_2948G-14
  no ip address
  no ip directed-broadcast
  hold-queue 300 in
 !
 interface Port-channel14.1
  encapsulation dot1Q 1 native
  no ip redirects
  no ip directed-broadcast
 !
 interface Port-channel14.140
  encapsulation dot1Q 140
  ip address 10.10.140.3 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 140 priority 110
  standby 140 preempt
  standby 140 authentication C10-140
  standby 140 ip 10.10.140.1
  standby 140 track GigabitEthernet49 20
  standby 140 track GigabitEthernet50 20
 !
 interface Port-channel14.145
  encapsulation dot1Q 145
  ip address 10.10.140.131 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 145 priority 100
  standby 145 preempt
  standby 145 authentication C10-145
  standby 145 ip 10.10.140.129
  standby 145 track GigabitEthernet49 20
  standby 145 track GigabitEthernet50 20
 !
 interface Port-channel15
  description Channel_to_2948G-15
  no ip address
  no ip directed-broadcast
  hold-queue 300 in
 !
 interface Port-channel15.1
  encapsulation dot1Q 1 native
  no ip redirects
  no ip directed-broadcast
 !
 interface Port-channel15.150
  encapsulation dot1Q 150
  ip address 10.10.150.3 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 150 priority 110
  standby 150 preempt
  standby 150 authentication C10-150
  standby 150 ip 10.10.150.1
  standby 150 track GigabitEthernet49 20
  standby 150 track GigabitEthernet50 20
 !
 interface Port-channel15.155
  encapsulation dot1Q 155
  ip address 10.10.150.131 255.255.255.128
  no ip redirects
  no ip directed-broadcast
  standby 155 priority 100
  standby 155 preempt
  standby 155 authentication C10-155
  standby 155 ip 10.10.150.129
  standby 155 track GigabitEthernet49 20
  standby 155 track GigabitEthernet50 20
 !
 interface FastEthernet1
  no ip address
  no ip directed-broadcast
  channel-group 1
 !
 interface FastEthernet2
  no ip address
  no ip directed-broadcast
  channel-group 1
 !
 interface FastEthernet3
  no ip address
  no ip directed-broadcast
  channel-group 2
 !
 interface FastEthernet4
  no ip address
  no ip directed-broadcast
  channel-group 2
 !
 interface FastEthernet5
  no ip address
  no ip directed-broadcast
  channel-group 3
 !
 interface FastEthernet6
  no ip address
  no ip directed-broadcast
  channel-group 3
 !
 interface FastEthernet7
  no ip address
  no ip directed-broadcast
  channel-group 4
 !
 interface FastEthernet8
  no ip address
  no ip directed-broadcast
  channel-group 4
 !
 interface FastEthernet9
  no ip address
  no ip directed-broadcast
  channel-group 5
 !
 interface FastEthernet10
  no ip address
  no ip directed-broadcast
  channel-group 5
 !
 interface FastEthernet11
  no ip address
  no ip directed-broadcast
  channel-group 6
 !
 interface FastEthernet12
  no ip address
  no ip directed-broadcast
  channel-group 6
 !
 interface FastEthernet13
  no ip address
  no ip directed-broadcast
  channel-group 7
 !
 interface FastEthernet14
  no ip address
  no ip directed-broadcast
  channel-group 7
 !
 interface FastEthernet15
  no ip address
  no ip directed-broadcast
  channel-group 8
 !
 interface FastEthernet16
  no ip address
  no ip directed-broadcast
  channel-group 8
 !
 interface FastEthernet17
  no ip address
  no ip directed-broadcast
  channel-group 9
 !
 interface FastEthernet18
  no ip address
  no ip directed-broadcast
  channel-group 9
 !
 interface FastEthernet19
  no ip address
  no ip directed-broadcast
  channel-group 10
 !
 interface FastEthernet20
  no ip address
  no ip directed-broadcast
  channel-group 10
 !
 interface FastEthernet21
  no ip address
  no ip directed-broadcast
  channel-group 11
 !        
 interface FastEthernet22
  no ip address
  no ip directed-broadcast
  channel-group 11
 !
 interface FastEthernet23
  no ip address
  no ip directed-broadcast
  channel-group 12
 !
 interface FastEthernet24
  no ip address
  no ip directed-broadcast
  channel-group 12
 !
 interface FastEthernet25
  no ip address
  no ip directed-broadcast
  channel-group 13
 !
 interface FastEthernet26
  no ip address
  no ip directed-broadcast
  channel-group 13
 !
 interface FastEthernet27
  no ip address
  no ip directed-broadcast
  channel-group 14
 !
 interface FastEthernet28
  no ip address
  no ip directed-broadcast
  channel-group 14
 !
 interface FastEthernet29
  no ip address
  no ip directed-broadcast
  channel-group 15
 !
 interface FastEthernet30
  no ip address
  no ip directed-broadcast
  channel-group 15
 !
 interface FastEthernet31
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet32
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet33
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet34
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet35
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet36
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet37
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet38
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet39
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet40
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet41
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet42
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet43
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet44
  no ip address
  no ip directed-broadcast
  shutdown
 !        
 interface FastEthernet45
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet46
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet47
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface FastEthernet48
  no ip address
  no ip directed-broadcast
  shutdown
 !
 interface GigabitEthernet49
  description CoreVLAN10
  ip address 10.10.0.4 255.255.255.240
  no ip directed-broadcast
  ip summary-address eigrp 10 10.10.0.0 255.255.0.0
 !
 interface GigabitEthernet50
  description CoreVLAN15
  ip address 10.10.0.20 255.255.255.240
  no ip directed-broadcast
  ip summary-address eigrp 10 10.10.0.0 255.255.0.0
  delay 15
 !
 router eigrp 10
  passive-interface default
  no passive-interface GigabitEthernet49
  no passive-interface GigabitEthernet50
  network 10.0.0.0
 !
 ip classless
 !
 !
 line con 0
  transport input none
 line aux 0
 line vty 0 4
  password secret
  login
 !
 end
 
 2948G-L3-02#
 
Catalyst 2948G-01 配置
2948G-01> (enable) show config
 This command shows non-default configurations only.
 Use ''show config all'' to show both default and non-default configurations.
 .......
 
 ................
 ..
 
 begin
 !
 # ***** NON-DEFAULT CONFIGURATION *****
 !
 !
 #time: Mon Jun 22 2000, 15:39:38
 !
 #version 5.4(3)
 !
 !
 #system web interface version
 !
 set enablepass $2$FNl3$8MSzcpVMg1H2aWfll13aZ.
 !
 #system
 set system name  2948G-01
 set system location Closet10-01
 set system contact  sysadmin@corp.com
 !
 #frame distribution method
 set port channel all distribution mac both
 !
 #vtp
 set vtp domain Closet-10-01
 set vtp mode transparent
 set vlan 1 name default type ethernet mtu 1500 said 100001 state active
 set vlan 10 name 10.10.10.0/25 type ethernet mtu 1500 said 100010 state active
 set vlan 15 name 10.10.10.128/25 type ethernet mtu 1500 said 100015 state
 active
 set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active
 set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state
 active stp ieee
 set vlan 1005 name trnet-default type trbrf mtu 1500 said 101005 state active
 stp ibm
 set vlan 1003 name token-ring-default type trcrf mtu 1500 said 101003 state
 active mode srb aremaxhop 7 stemaxhop 7 backupcrf off
 !
 #ip
 set interface sc0 10 10.10.10.4/255.255.255.128 10.10.10.127
 
 set interface sl0 down
 set interface me1 down
 set ip route 0.0.0.0/0.0.0.0         10.10.10.1    
 !      
 #syslog
 set logging console disable
 !
 #set boot command
 set boot config-register 0x2102
 set boot system flash bootflash:cat4000.5-4-2.bin
 set boot system flash bootflash:cat4000.5-2-2.bin
 set boot system flash bootflash:cat4000.4-5-2.bin
 !
 #port channel
 set port channel 2/45-46 40
 set port channel 2/47-48 41
 !
 #module 1 : 0-port Switching Supervisor
 !
 #module 2 : 50-port 10/100/1000 Ethernet
 set vlan 10   2/1-22
 set vlan 15   2/23-44
 set port name       2/45 2948G-L3-01_Uplink
 set port name       2/46 2948G-L3-01_Uplink
 set port name       2/47 2948G-L3-02_Uplink
 set port name       2/48 2948G-L3-02_Uplink
 set trunk 2/1  off dot1q 1-1005
 set trunk 2/2  off dot1q 1-1005
 set trunk 2/3  off dot1q 1-1005
 set trunk 2/4  off dot1q 1-1005
 set trunk 2/5  off dot1q 1-1005
 set trunk 2/6  off dot1q 1-1005
 set trunk 2/7  off dot1q 1-1005
 set trunk 2/8  off dot1q 1-1005
 set trunk 2/9  off dot1q 1-1005
 set trunk 2/10 off dot1q 1-1005
 set trunk 2/11 off dot1q 1-1005
 set trunk 2/12 off dot1q 1-1005
 set trunk 2/13 off dot1q 1-1005
 set trunk 2/14 off dot1q 1-1005
 set trunk 2/15 off dot1q 1-1005
 set trunk 2/16 off dot1q 1-1005
 set trunk 2/17 off dot1q 1-1005
 set trunk 2/18 off dot1q 1-1005
 set trunk 2/19 off dot1q 1-1005
 set trunk 2/20 off dot1q 1-1005
 set trunk 2/21 off dot1q 1-1005
 set trunk 2/22 off dot1q 1-1005
 set trunk 2/23 off dot1q 1-1005
 set trunk 2/24 off dot1q 1-1005
 set trunk 2/25 off dot1q 1-1005
 set trunk 2/26 off dot1q 1-1005
 set trunk 2/27 off dot1q 1-1005
 set trunk 2/28 off dot1q 1-1005
 set trunk 2/29 off dot1q 1-1005
 set trunk 2/30 off dot1q 1-1005
 set trunk 2/31 off dot1q 1-1005
 set trunk 2/32 off dot1q 1-1005
 set trunk 2/33 off dot1q 1-1005
 set trunk 2/34 off dot1q 1-1005
 set trunk 2/35 off dot1q 1-1005
 set trunk 2/36 off dot1q 1-1005
 set trunk 2/37 off dot1q 1-1005
 set trunk 2/38 off dot1q 1-1005
 set trunk 2/39 off dot1q 1-1005
 set trunk 2/40 off dot1q 1-1005
 set trunk 2/41 off dot1q 1-1005
 set trunk 2/42 off dot1q 1-1005
 set trunk 2/43 off dot1q 1-1005
 set trunk 2/44 off dot1q 1-1005
 set trunk 2/45 nonegotiate dot1q 1-1005
 set trunk 2/46 nonegotiate dot1q 1-1005
 set trunk 2/47 nonegotiate dot1q 1-1005
 set trunk 2/48 nonegotiate dot1q 1-1005
 set spantree portfast    2/1-44 enable
 set port channel 2/45-48 mode on
 set port channel 2/1-44 mode off
 end
 2948G-01> (enable)
Catalyst 2948G-15 配置
2948G-15> (enable) show config
 This command shows non-default configurations only.
 Use ''show config all'' to show both default and non-default configurations.
 .......
 
 ................
 ..
 
 begin
 !
 # ***** NON-DEFAULT CONFIGURATION *****
 !
 !
 #time: Mon Jun 22 2000, 15:41:38
 !
 #version 5.4(3)
 !
 !
 #system web interface version
 !
 set enablepass $2$FNl3$8MSzcpVMg1H2aWfll13aZ.
 !
 #system
 set system name  2948G-15
 set system location Closet10-15
 set system contact  sysadmin@corp.com
 !
 #frame distribution method
 set port channel all distribution mac both
 !
 #vtp
 set vtp domain Closet-10-15
 set vtp mode transparent
 set vlan 1 name default type ethernet mtu 1500 said 100001 state active
 set vlan 150 name 10.10.150.0/25 type ethernet mtu 1500 said 100010 state active
 set vlan 155 name 10.10.150.128/25 type ethernet mtu 1500 said 100015 state
 active
 set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active
 set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state
 active stp ieee
 set vlan 1005 name trnet-default type trbrf mtu 1500 said 101005 state active
 stp ibm
 set vlan 1003 name token-ring-default type trcrf mtu 1500 said 101003 state
 active mode srb aremaxhop 7 stemaxhop 7 backupcrf off
 !
 #ip
 set interface sc0 10 10.10.150.4/255.255.255.128 10.10.10.127
 
 set interface sl0 down
 set interface me1 down
 set ip route 0.0.0.0/0.0.0.0         10.10.150.1    
 !      
 #syslog
 set logging console disable
 !
 #set boot command
 set boot config-register 0x2102
 set boot system flash bootflash:cat4000.5-4-2.bin
 set boot system flash bootflash:cat4000.5-2-2.bin
 set boot system flash bootflash:cat4000.4-5-2.bin
 !
 #port channel
 set port channel 2/45-46 40
 set port channel 2/47-48 41
 !
 #module 1 : 0-port Switching Supervisor
 !
 #module 2 : 50-port 10/100/1000 Ethernet
 set vlan 150   2/1-22
 set vlan 155   2/23-44
 set port name       2/45 2948G-L3-01_Uplink
 set port name       2/46 2948G-L3-01_Uplink
 set port name       2/47 2948G-L3-02_Uplink
 set port name       2/48 2948G-L3-02_Uplink
 set trunk 2/1  off dot1q 1-1005
 set trunk 2/2  off dot1q 1-1005
 set trunk 2/3  off dot1q 1-1005
 set trunk 2/4  off dot1q 1-1005
 set trunk 2/5  off dot1q 1-1005
 set trunk 2/6  off dot1q 1-1005
 set trunk 2/7  off dot1q 1-1005
 set trunk 2/8  off dot1q 1-1005
 set trunk 2/9  off dot1q 1-1005
 set trunk 2/10 off dot1q 1-1005
 set trunk 2/11 off dot1q 1-1005
 set trunk 2/12 off dot1q 1-1005
 set trunk 2/13 off dot1q 1-1005
 set trunk 2/14 off dot1q 1-1005
 set trunk 2/15 off dot1q 1-1005
 set trunk 2/16 off dot1q 1-1005
 set trunk 2/17 off dot1q 1-1005
 set trunk 2/18 off dot1q 1-1005
 set trunk 2/19 off dot1q 1-1005
 set trunk 2/20 off dot1q 1-1005
 set trunk 2/21 off dot1q 1-1005
 set trunk 2/22 off dot1q 1-1005
 set trunk 2/23 off dot1q 1-1005
 set trunk 2/24 off dot1q 1-1005
 set trunk 2/25 off dot1q 1-1005
 set trunk 2/26 off dot1q 1-1005
 set trunk 2/27 off dot1q 1-1005
 set trunk 2/28 off dot1q 1-1005
 set trunk 2/29 off dot1q 1-1005
 set trunk 2/30 off dot1q 1-1005
 set trunk 2/31 off dot1q 1-1005
 set trunk 2/32 off dot1q 1-1005
 set trunk 2/33 off dot1q 1-1005
 set trunk 2/34 off dot1q 1-1005
 set trunk 2/35 off dot1q 1-1005
 set trunk 2/36 off dot1q 1-1005
 set trunk 2/37 off dot1q 1-1005
 set trunk 2/38 off dot1q 1-1005
 set trunk 2/39 off dot1q 1-1005
 set trunk 2/40 off dot1q 1-1005
 set trunk 2/41 off dot1q 1-1005
 set trunk 2/42 off dot1q 1-1005
 set trunk 2/43 off dot1q 1-1005
 set trunk 2/44 off dot1q 1-1005
 set trunk 2/45 nonegotiate dot1q 1-1005
 set trunk 2/46 nonegotiate dot1q 1-1005
 set trunk 2/47 nonegotiate dot1q 1-1005
 set trunk 2/48 nonegotiate dot1q 1-1005
 set spantree portfast    2/1-44 enable
 set port channel 2/45-48 mode on
 set port channel 2/1-44 mode off
 end
 2948G-15> (enable)
Catalyst 6506-01 配置
6506-01> (enable) show config
 This command shows non-default configurations only.
 Use ''show config all'' to show both default and non-default configurations.
 .........
 ................
 ..
 
 begin
 !
 # ***** NON-DEFAULT CONFIGURATION *****
 !
 !
 #time: Fri Jun 23 2000, 13:05:49
 !
 #version 5.4(3)
 !
 !
 #system web interface version Engine: 5.1 ADP device: Cat6000 ADP Version: 1.2
 ADK: 31
 !
 set password $2$JYD3$CcHOBhHYnLzI9O0B9F1Ov/
 set enablepass $2$93UN$/2fd2eCwlRdUSkklJ/KZ21
 !
 #system
 set system name  6506-01
 set system location Core-MDF-10
 set system contact  sysadmin@corp.com
 !
 #!
 #vtp
 set vtp domain Core-Domain
 set vlan 1 name default type ethernet mtu 1500 said 100001 state active
 set vlan 10 name Aggregation-10.10.0.0/16-Even type ethernet mtu 1500 said
 100010 state active
 set vlan 15 name Aggregation-10.10.0.0/16-Odd type ethernet mtu 1500 said
 100015 state active
 set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active
 set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state
 active stp ieee
 set vlan 1005 name trnet-default type trbrf mtu 1500 said 101005 state active
 stp ibm
 set vlan 1003 name token-ring-default type trcrf mtu 1500 said 101003 state
 active mode srb aremaxhop 7 stemaxhop 7 backupcrf off
 !
 #ip
 set interface sc0 1 10.1.1.4/255.255.255.0 10.1.1.255
0
相关文章