思科路由器端口汇聚配置

端口汇聚配置

实验环境设备C3691

160925291.png

R1#show ip interface

FastEthernet0/0 is administratively down,line protocol is down

Internet protocol processing disabled

FastEthernet0/1 is administratively down,line protocol is down

Internet protocol processing disabled

R1#config

Configuring from terminal, memory, ornetwork [terminal]?

Enter configuration commands, one perline. End with CNTL/Z.

R1(config)#interface f0/0

R1(config-if)#ip address 192.168.1.1255.255.255.0

R1(config-if)#end

R1#show ?

R1#?

R1#tunnel ?

WORD Address or hostname of a remote system


R1#config

Configuring from terminal, memory, ornetwork [terminal]?

Enter configuration commands, one perline. End with CNTL/Z.

R1(config)#

R1(config)#interface ?

R1(config)#interface port-channel ?

<1-64> Port-channelinterface number


R1(config)#interface port-channel 1

R1(config-if)#?

R1(config-if)#ip address 192.168.23.1 ?

A.B.C.D IP subnet mask


R1(config-if)#ip address 192.168.23.1255.255.255.0

R1(config-if)#?

R1(config-if)#exit

R1(config)#interface range ?

FastEthernet FastEthernet IEEE802.3

Port-channel Ethernet Channel ofinterfaces

macro macro keyword


R1(config)#interface range f ?

<0-6> FastEthernetinterface number


R1(config)#interface range f0?

/


R1(config)#interface range f0/1?

. : <0-1>


R1(config)#interface range f0/0 ?

, comma

- hyphen

<cr>


R1(config)#interface range f0/0 - ?

<1-1005> last portnumber or vlan interface in port-range

FastEthernet FastEthernet IEEE802.3

Port-channel Ethernet Channel ofinterfaces


R1(config)#interface range f0/0 - 1

R1(config-if-range)#?

R1(config-if-range)#channel-group ?

<1-64> Channel group number


R1(config-if-range)#channel-group 1 ?

<cr>


R1(config-if-range)#channel-group 1

Error: The Etherchannel members can nothave IP address


R1(config-if-range)#no ip address

R1(config-if-range)#channel-group 1

Interface already configured inPort-Channel-1.


R1(config-if-range)# end

R1#copy running start


R1#show runn inter port 1

Building configuration...


Current configuration : 89 bytes

!

interface Port-channel1

ipaddress 192.168.23.1 255.255.255.0

hold-queue 300 in

end

对端设备的配置

R2#config

Configuring from terminal, memory, ornetwork [terminal]?

Enter configuration commands, one perline. End with CNTL/Z.

R2(config)#inter por 1

R2(config-if)#ip add 192.168.23.2255.255.255.0

R2(config-if)#exit

R2(config)#interface range f0/0 - 1

R2(config-if-range)#no ip address

R2(config-if-range)#channel-group 1

R2(config-if-range)#exit

R2(config)#end

R2#copy runn sta

Destination filename [startup-config]?

Warning: Attempting to overwrite an NVRAMconfiguration previously written

by a different version of the system image.

Overwrite the previous NVRAMconfiguration?[confirm]

Building configuration...

[OK]

R2#show runn ?

brief configuration withoutcertificate data

class-map Show class-mapinformation

full full configuration

interface Show interfaceconfiguration

linenum Display line numbersin output

map-class Show map classinformation

policy-map Show policy-mapinformation

| Output modifiers

<cr>


R2#show runn inter port-channel 1

Building configuration...


Current configuration : 89 bytes

!

interface Port-channel1

ipaddress 192.168.23.2 255.255.255.0

hold-queue 300 in

end


R2#




你可能感兴趣的:(路由器,思科,端口汇聚)