關(guān)于LAN網(wǎng)內(nèi)VLAN與Trunk的詳細(xì)配置
發(fā)布時(shí)間:2010-09-07 23:39:33 作者:佚名
我要評(píng)論

此實(shí)驗(yàn)過(guò)程是在Boson NetSim for CCNP version 6.0 BETA 1軟件下做的。其中使用2臺(tái)C2905switch和4臺(tái)PC機(jī)。
實(shí)驗(yàn)內(nèi)容:
1、 配置控制端口和虛擬線路
2、設(shè)置VLAN兩個(gè),分別為:VLAN100 Pcontrol和VLAN200 Accout
3、分別將接口加入到VLA
此實(shí)驗(yàn)過(guò)程是在Boson NetSim for CCNP version 6.0 BETA 1軟件下做的。其中使用2臺(tái)C2905switch和4臺(tái)PC機(jī)。
實(shí)驗(yàn)內(nèi)容:
1、 配置控制端口和虛擬線路
2、設(shè)置VLAN兩個(gè),分別為:VLAN100 Pcontrol和VLAN200 Accout
3、分別將接口加入到VLAN100和VLAN200后配置Trunk線路,保證VLAN間的通信
4、最后進(jìn)行測(cè)試是否成功
關(guān)于LAN網(wǎng)內(nèi)VLAN與Trunk的詳細(xì)配置

SW1(C2950)交換機(jī)測(cè)試詳細(xì)步驟及結(jié)果:
CLI session with the switch is open.
To end the CLI session, enter [Exit].
Switch>
%LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/6, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/7, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/8, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/9, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/9, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/11, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/12, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to down
Switch>enable
Switch#show version
Boson Operating Simulation Software
BOSS (tm) C2900 Software (C2900-Enterprise), Version 12.1, RELEASE SOFTWARE
Copyright (c) 1998-2003 by Boson Software, Inc.
BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE
Switch Uptime Is 0 days, 0 hours, 0 minutes
System restarted by power-on
System image file is ""flash:c2900-enterprise.12.1.boss"", booted via flash
Boson 2900 (BOSS) processor (revision 5.0)
12 FastEthernet/IEEE 802.3 interface(s)
32K bytes of simulated non-volatile configuration memory.
8192K bytes of simulated System flash (Read/Write)
Switch#
Switch#
Switch#show runn
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
!
ip subnet-zero
spanning-tree extend system-id
!
!
!
!
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
Switch#show runn
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
!
ip subnet-zero
spanning-tree extend system-id
!
!
!
!
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
vtp domain bigdomain
!
interface Vlan 1
no ip address
no ip route-cache
!
!
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 15
!
no scheduler allocate
end
Switch#
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
SW1(config)#line console 0
SW1(config-line)#exec-timeout 20 0
SW1(config-line)#logging synchronous
SW1(config-line)#password dsfeng
SW1(config-line)#login
SW1(config-line)#line vty 0 15
SW1(config-line)#exec-timeout 15 0
SW1(config-line)#logging synchronous
SW1(config-line)#password dsfeng
SW1(config-line)#login
SW1(config-line)#enable secret cisco
SW1(config)#exit
SW1#
SW1#
SW1#vlan database
SW1(vlan)#vlan 100 name Pcontrol
VLAN 100 added:
Name:Pcontrol
SW1(vlan)#vlan 200 name Accout
VLAN 200 added:
Name:Accout
SW1(vlan)#exit
APPLY completed.
Exiting....
SW1#
SW1#
SW1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#interface fastethernet 0/2
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 100
SW1(config-if)#exit
SW1(config)#interface fastethernet 0/3
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 200
SW1(config-if)#exit
SW1(config)#interface fasteterhent 0/10
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#end
SW1#
SW1#
SW1#show interface fastethernet 0/2
FastEthernet0/2 is up, line protocol is up
Hardware is Fast Ethernet, address is 000C .6542.9093 (bia 000C .6542.9093)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Auto-duplex, Auto-speed
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 02:29:44, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
269 packets input, 71059 bytes, 0 no buffer
Received 6 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
7290 packets output, 429075 bytes, 0 underruns
0 output errors, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
SW1#
SW1#
SW1#show interface fastethernet 0/3
FastEthernet0/3 is up, line protocol is up
Hardware is Fast Ethernet, address is 000C .3849.2796 (bia 000C .3849.2796)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Auto-duplex, Auto-speed
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 02:29:44, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
269 packets input, 71059 bytes, 0 no buffer
Received 6 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
7290 packets output, 429075 bytes, 0 underruns
0 output errors, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
SW1#
SW1#
SW1#show interface fastethernet 0/10
FastEthernet0/10 is up, line protocol is up
Hardware is Fast Ethernet, address is 000C .3878.9745 (bia 000C .3878.9745)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Auto-duplex, Auto-speed
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 02:29:44, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
269 packets input, 71059 bytes, 0 no buffer
Received 6 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
7290 packets output, 429075 bytes, 0 underruns
0 output errors, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
SW1#
SW1#
SW1#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12
100 Pcontrol active Fa0/2
200 Accout active Fa0/3
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
100 enet 100100 1500 - - - - - 0 0
200 enet 100200 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
SW1#
SW1#
SW1#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge , B - Source Route Bridge
S -Switch, H - Host, i - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW2 Fas0/10 167 T S 2950 Fas 0/10
SW1#
SW1#
SW1#show mac-address-table
Capability Codes: R - Router, T - Trans Bridge , B - Source Route Bridge
S -Switch, H - Host, i - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW2 Fas0/10 167 T S 2950 Fas 0/10
Mac Address Table
------------------------------------------
Vlan Mac Address Type Ports
---- ----------- ---- -----
200 000C .9631.1997 DYNAMIC Fa0/3
100 000C .7036.8702 DYNAMIC Fa0/2
1 000C .3817.8412 DYNAMIC Fa0/10
1 000C .9623.5011 DYNAMIC Fa0/10
1 000C .1738.3819 DYNAMIC Fa0/10
Total Mac Addresses for this criterion: 5
SW1#
SW1#
SW1#show run
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW1
enable secret 5 $sdf$6978yhg$jnb76sd
!
!
!
ip subnet-zero
spanning-tree extend system-id
!
!
!
!
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
switchport mode access
switchport access vlan 100
!
interface FastEthernet0/3
switchport mode access
switchport access vlan 200
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
switchport mode trunk
switchport trunk encapsulation dot1q
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
vtp domain bigdomain
!
interface Vlan 1
no ip address
no ip route-cache
!
vlan 100 name Pcontrol
vlan 200 name Accout
!
ip classless
no ip http server
!
!
!
!
line con 0
login
transport input none
password dsfeng
exec-timeout 15 0
logging synchronous
line aux 0
line vty 0 15
login
password dsfeng
!
no scheduler allocate
end
SW1#
SW1#
SW1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
SW1#
SW1#
#p#
SW2(C2950)交換機(jī)測(cè)試詳細(xì)步驟及結(jié)果:
CLI session with the switch is open.
To end the CLI session, enter [Exit].
%LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/6, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/7, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/8, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/9, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/9, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/11, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to down
%LINK-3-UPDOWN: Interface FastEthernet0/12, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to down
Switch>
Switch>enable
Switch#show version
Boson Operating Simulation Software
BOSS (tm) C2900 Software (C2900-Enterprise), Version 12.1, RELEASE SOFTWARE
Copyright (c) 1998-2003 by Boson Software, Inc.
BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE
Switch Uptime Is 0 days, 0 hours, 5 minutes
System restarted by power-on
System image file is ""flash:c2900-enterprise.12.1.boss"", booted via flash
Boson 2900 (BOSS) processor (revision 5.0)
12 FastEthernet/IEEE 802.3 interface(s)
32K bytes of simulated non-volatile configuration memory.
8192K bytes of simulated System flash (Read/Write)
Switch#
Switch#
Switch#show runn
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
!
ip subnet-zero
spanning-tree extend system-id
!
!
!
!
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
vtp domain bigdomain
!
interface Vlan 1
no ip address
no ip route-cache
!
!
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 15
!
no scheduler allocate
end
Switch#
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW2
SW2(config)#line console 0
SW2(config-line)#exec-timeout 20 0
SW2(config-line)#logging synchronous
SW2(config-line)#password dsfeng
SW2(config-line)#login
SW2(config-line)#line vty 0 15
SW2(config-line)#exec-timeout 15 0
SW2(config-line)#logging synchronous
SW2(config-line)#password dsfeng
SW2(config-line)#login
SW2(config-line)#enable secret cisco
SW2(config)#end
SW2#
SW2#
SW2#vlan database
SW2(vlan)#vlan 100 name Pcontrol
VLAN 100 added:
Name:Pcontrol
SW2(vlan)#vlan 200 name Accout
VLAN 200 added:
Name:Accout
SW2(vlan)#exit
APPLY completed.
Exiting....
SW2#
SW2#
SW2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#interface fastethernet 0/2
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 100
SW2(config-if)#exit
SW2(config)#interface fastethernet 0/3
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 200
SW2(config-if)#exit
SW2(config)#interface fastethernet 0/10
SW2(config-if)#switchport mode trunk
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#end
SW2#
SW2#
SW2#show interface fastethernet 0/2
FastEthernet0/2 is up, line protocol is up
Hardware is Fast Ethernet, address is 000C .2018.9057 (bia 000C .2018.9057)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Auto-duplex, Auto-speed
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 02:29:44, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
269 packets input, 71059 bytes, 0 no buffer
Received 6 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
7290 packets output, 429075 bytes, 0 underruns
0 output errors, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
SW2#
SW2#
SW2#show interface fastethernet 0/3
FastEthernet0/3 is up, line protocol is up
Hardware is Fast Ethernet, address is 000C .4287.4991 (bia 000C .4287.4991)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Auto-duplex, Auto-speed
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 02:29:44, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
269 packets input, 71059 bytes, 0 no buffer
Received 6 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
7290 packets output, 429075 bytes, 0 underruns
0 output errors, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
SW2#
SW2#
SW2#show interface fastethernet 0/10
FastEthernet0/10 is up, line protocol is up
Hardware is Fast Ethernet, address is 000C .3817.8412 (bia 000C .3817.8412)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Auto-duplex, Auto-speed
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 02:29:44, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
269 packets input, 71059 bytes, 0 no buffer
Received 6 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
7290 packets output, 429075 bytes, 0 underruns
0 output errors, 3 interface resets
0 output buffer failures, 0 output buffers swapped out
SW2#
SW2#
SW2#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12
100 Pcontrol active Fa0/2
200 Accout active Fa0/3
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
100 enet 100100 1500 - - - - - 0 0
200 enet 100200 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
SW2#
SW2#
SW2#show mac-address-table
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12
100 Pcontrol active Fa0/2
200 Accout active Fa0/3
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
100 enet 100100 1500 - - - - - 0 0
200 enet 100200 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Mac Address Table
------------------------------------------
Vlan Mac Address Type Ports
---- ----------- ---- -----
200 000C .1738.3819 DYNAMIC Fa0/3
100 000C .9623.5011 DYNAMIC Fa0/2
1 000C .3878.9745 DYNAMIC Fa0/10
1 000C .7036.8702 DYNAMIC Fa0/10
1 000C .9631.1997 DYNAMIC Fa0/10
Total Mac Addresses for this criterion: 5
SW2#
SW2#
SW2#show runn
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW2
enable secret 5 $sdf$6978yhg$jnb76sd
!
!
!
ip subnet-zero
spanning-tree extend system-id
!
!
!
!
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
switchport mode access
switchport access vlan 100
!
interface FastEthernet0/3
switchport mode access
switchport access vlan 200
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
switchport mode trunk
switchport trunk encapsulation dot1q
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
vtp domain bigdomain
!
interface Vlan 1
no ip address
no ip route-cache
!
vlan 100 name Pcontrol
vlan 200 name Accout
!
ip classless
no ip http server
!
!
!
!
line con 0
login
transport input none
password dsfeng
exec-timeout 15 0
logging synchronous
line aux 0
line vty 0 15
login
password dsfeng
!
no scheduler allocate
end
SW2#
SW2#
SW2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
SW2#
SW2#
PC1測(cè)試結(jié)果:
Boson BOSS 5.0
Copyright 1998-2005 Boson Software, Inc.
Use the command help to get started
Press Enter to begin
C:>
C:>ipconfig /ip 192.168.1.1 255.255.255.0
C:>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.1.2: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 50ms, Maximum = 60ms, Average = 55ms
PC2測(cè)試結(jié)果:
Boson BOSS 5.0
Copyright 1998-2005 Boson Software, Inc.
Use the command help to get started
Press Enter to begin
C:>ipconfig /ip 192.168.10.1 255.255.255.0
C:>
C:>ping 192.168.10.2
Pinging 192.168.10.2 with 32 bytes of data:
Reply from 192.168.10.2: bytes=32 time=60ms TTL=241
Reply from 192.168.10.2: bytes=32 time=60ms TTL=241
Reply from 192.168.10.2: bytes=32 time=60ms TTL=241
Reply from 192.168.10.2: bytes=32 time=60ms TTL=241
Reply from 192.168.10.2: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.10.2: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 50ms, Maximum = 60ms, Average = 55ms
PC3測(cè)試結(jié)果:
Boson BOSS 5.0
Copyright 1998-2005 Boson Software, Inc.
Use the command help to get started
Press Enter to begin
C:>ipconfig /ip 192.168.1.2 255.255.255.0
C:>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.1.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 50ms, Maximum = 60ms, Average = 55ms
PC4測(cè)試結(jié)果:
Boson BOSS 5.0
Copyright 1998-2005 Boson Software, Inc.
Use the command help to get started
Press Enter to begin
C:>ipconfig /ip 192.168.10.2 255.255.255.0
C:>ping 192.168.10.1
Pinging 192.168.10.1 with 32 bytes of data:
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Reply from 192.168.10.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.10.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 50ms, Maximum = 60ms, Average = 55ms

相關(guān)文章
微軟新版Outlook將推出郵件分類(lèi)快捷鍵及多項(xiàng)優(yōu)化:5月開(kāi)始部署
微軟計(jì)劃在新版Outlook for Windows中引入郵件分類(lèi)快捷功能,用戶可通過(guò)預(yù)設(shè)快捷鍵快速對(duì)郵件進(jìn)行分類(lèi),從而大幅提升工作效率并優(yōu)化管理流程2025-04-21rsync The --password-file option may only be used when accessing a
客戶端上傳文件執(zhí)行命令出錯(cuò),提醒The --password-file option may only be used when accessing an rsync daemon.查找資料也很少這樣的說(shuō)法,最后發(fā)現(xiàn)是冒號(hào)的問(wèn)題2025-02-26郵箱密碼忘記了怎么找回來(lái)? 網(wǎng)易郵箱密碼找回流程
郵箱在使用的時(shí)候,由于各種原因,有時(shí)候我們可能會(huì)遇到忘記密碼、賬號(hào)被盜等問(wèn)題,這時(shí)候就需要進(jìn)行163郵箱找回操作,本文將為大家介紹如何進(jìn)行163郵箱找回操作2025-02-01電子郵件注冊(cè)教程! 郵箱號(hào)怎么注冊(cè)看這篇就夠了
電子郵件成為了我們?nèi)粘I詈凸ぷ髦胁豢苫蛉钡囊徊糠郑瑹o(wú)論是注冊(cè)社交媒體、購(gòu)物平臺(tái),還是與他人溝通,一個(gè)穩(wěn)定的郵箱賬號(hào)都變得至關(guān)重要,本文將為您提供詳細(xì)的電子郵件2025-02-01wps調(diào)用Outlook 批量發(fā)送電子郵件時(shí)持續(xù)彈出警告框怎么辦?
如何解決程序調(diào)用outlook時(shí)一直警告,wps調(diào)用outlook發(fā)送郵件時(shí),發(fā)送的時(shí)候,會(huì)一直出現(xiàn)警告,需要你一個(gè)個(gè)點(diǎn)確定或拒絕,本文介紹如何解決這個(gè)警告2025-02-01QQ郵箱文件怎么發(fā)送微信? 電腦qq郵箱中轉(zhuǎn)站中文件分享到微信的方法
在使用郵箱軟件的時(shí)候,有的用戶想要通過(guò)QQ郵箱文件,QQ郵箱中存在這種功能,但是很多小伙伴不知道到底要如何操作,下面小編就給大家?guī)?lái)QQ郵箱文件發(fā)送微信教程,感興趣的2024-09-29微信電腦版怎么獨(dú)立窗口中打開(kāi)訂閱號(hào)? 訂閱號(hào)獨(dú)立窗口顯示的教程
微信電腦版看訂閱號(hào)的時(shí)候,想要獨(dú)立窗口顯示訂閱號(hào),該怎么操作呢?下面我們就來(lái)看看詳細(xì)的教程2024-09-29Outlook在windows系統(tǒng)中有哪些快捷鍵? Outlook的鍵盤(pán)快捷方式大全
Outlook可以用它來(lái)收發(fā)電子郵件、管理聯(lián)系人信息、記日記、安排日程、分配任務(wù),新版Outlook for Windows帶來(lái)了許多新功能,今天我們就來(lái)看看Outlook快捷鍵匯總2024-09-13微信怎么調(diào)默認(rèn)瀏覽器? 微信設(shè)置默認(rèn)瀏覽器打開(kāi)網(wǎng)頁(yè)鏈接的教程
微信怎么調(diào)默認(rèn)瀏覽器?只需簡(jiǎn)單設(shè)置,在微信就可以使用默認(rèn)瀏覽器打開(kāi)網(wǎng)站,該怎么設(shè)置呢?詳細(xì)請(qǐng)看下文介紹2024-08-14GameViewer怎么刪除設(shè)備 GameViewer刪除設(shè)備的步驟
GameViewer怎么刪除設(shè)備?GameViewer 是一款專(zhuān)為游戲玩家設(shè)計(jì)的遠(yuǎn)程控制助手,下文中為大家?guī)?lái)了GameViewer刪除設(shè)備步驟,需要的朋友快來(lái)看看吧2024-06-17