亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 網絡通信 > 正文

Cisco交換機以太網經典配置

2019-11-05 01:57:06
字體:
來源:轉載
供稿:網友

  很經典啊,我用的。

Configurations

The configurations in this document were implemented in an isolated lab environment. The configurations were cleared by issuing the write erase command on the routers, and the clear config all command on the switches to ensure that all devices have a default configuration. Make sure you understand the potential impact of any configuration or command on your network before using it.

Catalyst 6500 Switch

Note: The following screen captures show the commands that were entered on the Catalyst 6500 switch. Comments between the commands are added in blue italics to eXPlain certain commands and steps.

!-- Set the ip address and default gateway for VLAN 1 for management purposes.

Catalyst6500> (enable) set int sc0 10.10.10.2 255.255.255.0

Interface sc0 IP address and netmask set.

Catalyst6500> (enable) set ip route default 10.10.10.1

Route added.

!-- Set the VTP mode.

!-- In our example, we have set the mode to be transparent. !-- Depending on your network, set the VTP mode accordingly. !-- For details on VTP, refer to Understanding and Configuring VLAN Trunk PRotocol (VTP).

Catalyst6500> (enable) set vtp mode transparent

VTP domain modified

!-- Adding VLAN 2. VLAN 1 already exists by default.

Catalyst6500> (enable) set vlan 2

VLAN 2 configuration sUCcessful

!-- Adding port 3/4 to VLAN 2. Port 3/3 is already in VLAN 1 by default.

Catalyst6500> (enable) set vlan 2 3/4

VLAN 2 modified.

VLAN 1 modified.

VLAN Mod/Ports

---- -----------------------

2 3/4

! -- Set the port speed and duplex at 100 and full. One of

!-- the requirements for EtherChannel to work is for speed and duplex to be the same on

!-- both sides. To guarantee this, we will hard code both speed and duplex on ports 3/1 and 3/2.

Catalyst6500> (enable) set port speed 3/1-2 100

Ports 3/1-2 transmission speed set to 100Mbps.

Catalyst6500> (enable) set port duplex 3/1-2 full

Ports 3/1-2 set to full-duplex.

! -- Enable FEC on ports 3/1 and 3/2.

! -- Becuase routers do not understand Port Aggregation Protocol(PAgP),

! -- we set the channel mode to on which causes ports to channel,

! -- but not generate PAgP frames.

Catalyst6500> (enable) set port channel 3/1-2 on

Port(s) 3/1-2 are assigned to admin group 105.

Port(s) 3/1-2 channel mode set to on.

! -- Enable trunking on ports 3/1 and 3/2.

! -- Becuase routers do not understand Dynamic Trunking Protocol(DTP),

! -- we set the trunking mode to nonegotiate which causes ports to trunk,

! -- but not generate DTP frames.

! -- Notice that becuase we configured EtherChannel first,

! -- any trunk settings applied now to one port automatically apply to all other ports in the channel.

! -- Enter the trunking encapsulation as either isl ...

Catalyst6500> (enable) set trunk 3/1 nonegotiate isl Port(s) 3/1-2 trunk mode set to nonegotiate.

Port(s) 3/1-2 trunk type set to isl.

! -- ... or as dot1q.

! -- Make sure the native VLAN(default is VLAN 1) matches across the link.

! -- For more information on the native VLAN and 802.1q trunking, refer to

! -- Trunking Between Catalyst 4000, 5000, and6000 Family Switches Using 802.1q Encapsulation.

Catalyst6500> (enable) set trunk 3/1 nonegotiate dot1q

Port(s) 3/1-2 trunk mode set to nonegotiate.

Port(s) 3/1-2 trunk type set to dot1q.

Catalyst6500> (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: Thu May 2 2002, 01:26:26

!

#version 5.5(14)

!

!

#system

set system name Catalyst6500

!

#!

#vtp

set vtp mode transparent

set vlan 1 name default type ethernet mtu 1500 said 100001 state active

set vlan 2 name VLAN0002 type ethernet mtu 1500 said 100002 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.10.10.2/255.255.255.0 10.10.10.255

set ip route 0.0.0.0/0.0.0.0 10.10.10.1 !

#set boot command

set boot config-register 0x2102

set boot system Flash bootflash:cat6000-sup.5-5-14.bin

!

#port channel

set port channel 3/1-2 105

!

# default port status is enable

!

!

#module 1 empty

!

#module 2 : 2-port 1000BaseX Supervisor

!

#module 3 : 48-port 10/100BaseTX Ethernet

set vlan 2 3/4

set port disable 3/5

set port speed 3/1-2 100

set port duplex 3/1-2 full

set trunk 3/1 nonegotiate isl 1-1005

set trunk 3/2 nonegotiate isl 1-1005

!-- If IEEE 802.1q is configured,

!-- you will see the following output instead:

set trunk 3/1 nonegotiate dot1q 1-1005

set trunk 3/2 nonegotiate dot1q 1-1005

set port channel 3/1-2 mode on

!

#module 4 : 24-port 100BaseFX MM Ethernet

!

#module 5 empty

!

#module 6 empty

!

#module 15 empty

!

#module 16 empty

end

Cisco 7500 Router

Note: The following screen captures show the commands that were entered on the Cisco 7500 router. Comments between the commands are added in blue italics to explain certain commands and steps.

! -- Configure a port-channel interface to enable FEC.

7500#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

7500(config)#int port-channel 1

01:34:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed

state to down

! -- Configure full-duplex to match the duplex setting on the Catalyst switch side.

7500(config-if)#full-duplex

7500(config-if)#exit

! -- If using ISL trunking, configure two port-channel sub-interfaces and enable ISL trunking

! -- by issuing the encapsulation isl command.

! -- Configure IP addresses for InterVLAN routing.

7500(config)#int port-channel 1.1

7500(config-subif)#encapsulation isl 1

7500(config-subif)#ip address 10.10.10.1 255.255.255.0

7500(config-subif)#exit

7500(config)#int port-channel 1.2

7500(config-subif)#encapsulation isl 2

7500(config-subif)#ip address 10.10.11.1 255.255.255.0

7500(config-subif)#exit

! -- If using 802.1q trunking, configure two port-channel sub-interfaces, enable 802.1q trunking

! -- by issuing the encapsulation dot1Q native command and configure the IP addresses for

! -- InterVLAN routing.

Note: The encapsulation dot1Q 1 native command was added in Cisco IOS version 12.1(3)T. If you are using an earlier version of Cisco IOS, refer to the 802.1Q Configuration for Cisco IOS Versions Earlier than 12.1(3)T section of this document to configure 802.1Q trunking on the router.

! -- Make sure the native VLAN(default is VLAN 1) matches across the link.

! -- For more information on the native VLAN and 802.1q trunking, refer to

! -- Trunking Between Catalyst 4000, 5000, and 6000 Family Switches Using 802.1q Encapsulation. 7500(config)#int port-channel 1.1

7500(config-subif)#encapsulation dot1Q 1 native

7500(config-subif)#ip address 10.10.10.1 255.255.255.0

7500(config-subif)#exit

7500(config)#int port-channel 1.2

7500(config-subif)#encapsulation dot1Q 2

7500(config-subif)#ip address 10.10.11.1 255.255.255.0

7500(config-subif)#exit

! -- Configure the FastEthernet interfaces for speed 100 depending on the port adapter.

! -- Some FastEthernet port adapters can autonegotiate speed(10 or 100) and duplex(half or full).

! -- Others are only capable of 100 (half or full).

7500(config)#int fa5/1/0

7500(config-if)#speed 100

! -- Configure the FastEthernet interfaces to be members of port-channel 1 by issuing the channel-group command.

7500(config-if)#channel-group 1

%Interface MTU set to channel-group MTU 1500.

7500(config-if)#no shut

7500(config-if)#

%Interface MTU set to channel-group MTU 1500.

FastEthernet5/1/0 added as member-1 to port-channel1

01:46:09: %LINK-3-UPDOWN: Interface FastEthernet5/1/0, changed state to up

01:46:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1/0,

changed state to up

01:46:12: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1,

changed state to up

Router(config-if)#exit

Router(config)#int fa 5/1/1

Router(config-if)#speed 100

Router(config-if)#channel-group 1

%Interface MTU set to channel-group MTU 1500.

Router(config-if)#no shut

Router(config-if)#

%Interface MTU set to channel-group MTU 1500.

FastEthernet5/1/1 added as member-2 to port-channel1

01:54:52: %LINK-3-UPDOWN: Interface FastEthernet5/1/1, changed state to up

01:54:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1/1,

changed state to up

Router(config-if)#exit

! -- Remember to save the configuration.

7500#write memory

Building configuration...

[OK]

7500#

Note: In order to make this setup work, and to successfully ping between Workstation 1 and Workstation 2, you need to make sure that the default gateways on the workstations are setup properly. For Workstation 1, the default gateway should be 10.10.10.1 and for Workstation 2, the default gateway should be 10.10.11.1.

7500#show running-config

Building configuration...

Current configuration : 1593 bytes

!

version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

no service passWord-encryption

no service single-slot-reload-enable

!

hostname 7500

!

boot system disk1:rsp-jsv-mz.122-7b.bin

!

ip subnet-zero

!

ip cef

call rsvp-sync

!

!

!

interface Port-channel1

no ip address

full-duplex

hold-queue 300 in

!

interface Port-channel1.1

encapsulation isl 1

ip address 10.10.10.1 255.255.255.0

!

interface Port-channel1.2

encapsulation isl 2

ip address 10.10.11.1 255.255.255.0

! -- If 802.1q trunking is configured,

! -- you will see the following output instead:

interface Port-channel1.1

encapsulation dot1Q 1 native

ip address 10.10.10.1 255.255.255.0

!

interface Port-channel1.2

encapsulation dot1Q 2

ip address 10.10.11.1 255.255.255.0

!

interface FastEthernet5/1/0

no ip address

no ip mroute-cache

speed 100

full-duplex

channel-group 1

!

interface FastEthernet5/1/1

no ip address

no ip mroute-cache

speed 100

full-duplex

channel-group 1

!

!

ip classless

no ip http server

ip pim bidir-enable

!

!

!

!

line con 0

line aux 0

line vty 0 4

login

!

end

7500#

802.1Q Configuration on the Cisco 7500 for Cisco IOS Versions Earlier than 12.1(3)T

In Cisco IOS versions earlier than 12.1(3)T, the encapsulation dot1Q 1 native command under the subinterface was not available. However, it is still necessary to match the native VLAN across the link as described previously.

To configure 802.1q trunking in software versions earlier than 12.1(3)T, the IP address for VLAN 1 is configured on the main port-channel 1 interface as oppossed to a port-channel subinterface.

! -- Configure a port-channel interface to enable FEC.

7500#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

7500(config)#int port-channel 1

01:34:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed

state to down

! -- Configure full-duplex to match the duplex setting on the Catalyst switch side.

7500(config-if)#full-duplex 7500(config-if)#exit

! -- Do not configure an interface port-channel 1.1

!-- Instead, create a port-channel 1 main interface and configure the IP address for VLAN 1 here.

7500(config)#int port-channel 1

7500(config-if)#full-duplex

7500(config-if)#ip address 10.10.10.1 255.255.255.0

7500(config-if)#exit

7500(config)#

! -- It is still necessary to create a subinterface for VLAN 2.

7500(config)#int port-channel 1.2

7500(config-subif)#encapsulation dot1Q 2

7500(config-subif)#ip address 10.10.11.1 255.255.255.0

7500(config-subif)#exit

! -- Configure the FastEthernet interfaces for speed 100 depending on the port adapter.

! -- Some FastEthernet port adapters can autonegotiate speed(10 or 100) and duplex(half or full).

! -- Others are only capable of 100 (half or full).

7500(config)#int fa5/1/0

7500(config-if)#speed 100

! -- Configure the FastEthernet interfaces to be members of port-channel 1 by issuing the channel-group command.

7500(config-if)#channel-group 1

%Interface MTU set to channel-group MTU 1500.

7500(config-if)#no shut

7500(config-if)#

%Interface MTU set to channel-group MTU 1500.

FastEthernet5/1/0 added as member-1 to port-channel1

01:46:09: %LINK-3-UPDOWN: Interface FastEthernet5/1/0, changed state to up

01:46:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1/0,

changed state to up

01:46:12: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1,

changed state to up

Router(config-if)#exit

Router(config)#int fa 5/1/1

Router(config-if)#speed 100

Router(config-if)#channel-group 1

%Interface MTU set to channel-group MTU 1500.

Router(config-if)#no shut

Router(config-if)#

%Interface MTU set to channel-group MTU 1500.

FastEthernet5/1/1 added as member-2 to port-channel1

01:54:52: %LINK-3-UPDOWN: Interface FastEthernet5/1/1, changed state to up

01:54:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1/1,

changed state to up

Router(config-if)#exit

! -- Remember to save the configuration.

7500#write memory

Building configuration...

[OK]

7500#

Note: Remember also that in any version of software previous to 12.2 or 12.2T for the 7000/7500 series, you will have to issue the no ip cef command globally before configuring 802.1q trunking on a subinterface. Otherwise, you will see the following error message: 802.1q encapsulation not supported with CEF configured on the interface. Refer to the Hardware and Software Requirements section of this document for more information.

7500#show running-config

Building configuration...

Current configuration : 1593 bytes

!

version 12.1

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname 7500

!

!

ip subnet-zero

!

no ip cef

!

!

!

interface Port-channel1

ip address 10.10.10.1 255.255.255.0

full-duplex

hold-queue 300 in

!

interface Port-channel1.2

encapsulation dot1Q 2

ip address 10.10.11.1 255.255.255.0

!

interface FastEthernet5/1/0

no ip address

no ip mroute-cache

speed 100

full-duplex

channel-group 1

!

interface FastEthernet5/1/1

no ip address

no ip mroute-cache

speed 100

full-duplex

channel-group 1

!

!

ip classless

no ip http server

!

!

!

line con 0

line aux 0

line vty 0 4

login

!

end

7500#


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
久久视频免费在线播放| 久久久久久有精品国产| 色天天综合狠狠色| 国产精品网红直播| 国产精品一区二区电影| 日韩av网站在线| 浅井舞香一区二区| 精品成人av一区| 青青a在线精品免费观看| 高清日韩电视剧大全免费播放在线观看| 久久电影一区二区| 自拍偷拍亚洲区| 国产日韩中文在线| 黑人极品videos精品欧美裸| 久久亚洲精品视频| 在线免费看av不卡| 亚洲精品免费av| 欧美日韩精品在线| 国产精品久久久久久亚洲调教| 国产成人av在线| 国产在线观看不卡| 亚洲激情电影中文字幕| 97超视频免费观看| 国产成人久久久精品一区| 中国china体内裑精亚洲片| 久久亚洲国产精品| 国产91精品不卡视频| 欧美激情免费观看| 日韩精品视频在线| 欧美性猛交xxx| 亚洲精品456在线播放狼人| 在线视频欧美性高潮| 亚洲精品一区二区在线| 亚洲免费伊人电影在线观看av| 日韩精品免费在线视频观看| 欧美激情一区二区三区高清视频| 亚洲成人久久久| 456国产精品| 亚洲永久在线观看| 欧美亚洲日本网站| 精品国产乱码久久久久久婷婷| 日本精品视频在线| 中文字幕日韩有码| 69影院欧美专区视频| 精品爽片免费看久久| 国产精品福利网| 亚洲欧美国产另类| 欧美中在线观看| 深夜精品寂寞黄网站在线观看| 亚洲美女精品成人在线视频| 久久国产精品久久国产精品| 8090理伦午夜在线电影| 成人免费高清完整版在线观看| 欧美精品videos性欧美| 成人在线播放av| 国产精品久久视频| 精品国产一区二区三区久久狼黑人| 久久在线免费视频| 91亚洲午夜在线| 欧美激情亚洲精品| 亚洲精品国产免费| 日韩精品有码在线观看| 97av在线视频免费播放| 亚洲精品有码在线| 国产一区视频在线| 日韩欧美a级成人黄色| 久久天天躁狠狠躁夜夜躁| 欧美怡春院一区二区三区| 日韩精品高清在线| 精品中文视频在线| 按摩亚洲人久久| 久久香蕉精品香蕉| 91精品视频免费观看| 久久成人av网站| 久久久国产一区二区三区| 正在播放欧美一区| 国产亚洲欧美另类中文| 亚洲国产欧美一区二区丝袜黑人| 26uuu国产精品视频| 欧美专区日韩视频| 亚洲欧美精品suv| 日韩专区在线观看| 欧美一级视频免费在线观看| 欧美高清自拍一区| 日韩美女主播视频| 国产精品手机播放| 欧美大片va欧美在线播放| 丁香五六月婷婷久久激情| 久久精视频免费在线久久完整在线看| 国产国语videosex另类| 国产盗摄xxxx视频xxx69| 韩剧1988免费观看全集| 久久成人精品一区二区三区| 欧美性xxxxxxx| 爱福利视频一区| 亚洲日韩中文字幕在线播放| 久久精品中文字幕电影| 国产精品老女人精品视频| 欧美日韩一区二区三区在线免费观看| 亚洲一区二区黄| 中文字幕在线看视频国产欧美| 欧美性生交xxxxx久久久| 久久99精品久久久久久琪琪| 久久影院中文字幕| 国产精品久久久久免费a∨| 26uuu久久噜噜噜噜| 欧美成人午夜激情在线| 欧美成人午夜视频| 国产精品免费视频久久久| 久久久噜噜噜久噜久久| 亚洲欧美激情精品一区二区| 成人免费看吃奶视频网站| 久久久精品电影| 九九精品视频在线观看| 国产在线精品自拍| 亚洲成色www8888| 精品少妇一区二区30p| 国产精品日日摸夜夜添夜夜av| 日韩免费不卡av| 欧美精品久久久久久久久久| 国产精品中文字幕久久久| 97视频在线免费观看| 国产精品手机播放| 在线电影欧美日韩一区二区私密| 91久久精品在线| 久久九九国产精品怡红院| 国产精品久久久久久久久影视| 亚洲激情在线视频| 成人写真福利网| 欧美精品aaa| 一区二区在线视频播放| x99av成人免费| 亚洲欧美一区二区三区久久| 91精品久久久久久久久不口人| 51色欧美片视频在线观看| 欧美在线影院在线视频| 亚洲美腿欧美激情另类| 富二代精品短视频| 久久久久久久成人| 国产精品成人国产乱一区| 亚洲视频在线观看网站| 欧美一级免费看| 高清欧美电影在线| 亚州国产精品久久久| 最近2019年好看中文字幕视频| 精品国产福利视频| 精品久久香蕉国产线看观看gif| 亚洲在线观看视频网站| 欧美超级乱淫片喷水| 国产在线日韩在线| 青青草国产精品一区二区| 国产精品免费观看在线| 国产精品中文字幕久久久| 欧洲中文字幕国产精品| 久久久亚洲影院| 久久精品电影一区二区| 欧美国产日产韩国视频| 久久中文字幕视频| 5278欧美一区二区三区| 欧美一区二区三区……| 国产精品九九九| 69**夜色精品国产69乱| 久久视频中文字幕| 亚洲色图五月天|