Switch(config-if)#exit Switch(config)#
--------------------------------- Switch> Switch>en Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int port
Switch(config)#int port-channel 1 Switch(config-if)#switch trunk ?
allowed Set allowed VLAN characteristics when interface is in trunking mode
encapsulation Set trunking encapsulation when interface is in trunking mode native Set trunking native characteristics when interface is in trunking mode Switch(config-if)#switch trunk en
Switch(config-if)#switch trunk encapsulation dot1q Switch(config-if)#switch mode trunk Switch(config-if)#exit Switch(config)#int rang f0/1-2
Switch(config-if-range)#channel-group 1 mode on
%LINK-5-CHANGED: Interface Port-channel 1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
21
Switch(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Switch(config-if-range)#no shut Switch(config-if-range)#exit Switch(config)#
--------------------------- Switch# Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#span
Switch(config)#spanning-tree mode pv Switch(config)#spanning-tree mode pvst Switch(config)#exit Switch#
-------------------- 配置访问出网设备: Switch>en Switch#int f0/3 ^
% Invalid input detected at '^' marker.
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int f0/3 Switch(config-if)#no switch Switch(config-if)#no switchport
22
Switch(config-if)#ip addr 192.168.6.1 255.255.255.0 Switch(config-if)#no shut Switch(config-if)#exit Switch(config)#
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
-------------------------------------- Switch(config)# Switch(config)# Switch(config)#
Switch(config)#router ospf 1
Switch(config-router)#network 192.168.6.0 0.0.0.255 area 0 Switch(config-router)#exit Switch(config)#
00:10:50: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.6.254 on FastEthernet0/3 from LOADING to FULL, Loading Done
Switch(config)# Switch(config)#
Switch(config)#router ospf 50
Switch(config-router)#network 192.168.1.0 0.0.0.255
23
% Incomplete command.
Switch(config-router)#network 192.168.1.0 0.0.0.255 area 0 Switch(config-router)#network 192.168.2.0 0.0.0.255 area 0 Switch(config-router)#network 192.168.3.0 0.0.0.255 area 0 Switch(config-router)#network 192.168.4.0 0.0.0.255 area 0 Switch(config-router)# Switch(config-router)#
6.2.3出口路由器主要配置 Router> Router>en Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int s2/0
Router(config-if)#ip addr 201.6.2.5 255.255.255.252 Router(config-if)#ip nat outside Router(config-if)#no shut Router(config-if)#exit Router(config)#int f0/0 Router(config-if)#ip nat inside
Router(config-if)#ip addr 192.168.6.254 255.255.255.0 Router(config-if)#ip nat inside Router(config-if)#no shut Router(config-if)#exit Router(config)#int f1/0
Router(config-if)#ip addr 192.168.7.254 255.255.255.0 Router(config-if)#ip nat inside Router(config-if)#no shut Router(config-if)#exit Router(config)#router ospf 50
Router(config-router)#network 192.168.6.0 0.0.0.255 area 0 Router(config-router)#network 192.168.7.0 0.0.0.255 area 0 Router(config-router)#network 201.6.2.4 0.0.0.3 area 0
24
Router(config-router)#exit
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255 Router(config)#access-list 1 permit 192.168.2.0 0.0.0.255 Router(config)#access-list 1 permit 192.168.3.0 0.0.0.255 Router(config)#access-list 1 permit 192.168.4.0 0.0.0.255 Router(config)#access-list 1 permit 192.168.6.0 0.0.0.255 Router(config)#access-list 1 permit 192.168.7.0 0.0.0.255 Router(config)#
Router(config)#ip nat pool wan 202.128.62.33 202.128.62.62 netmask 255.255.255.224 Router(config)#ip nat inside source list 1 pool wan overload Router(config)#
Router(config)#ip route 0.0.0.0 0.0.0.0 s2/0 Router(config)#exit
25
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库企业网设计规划01(5)在线全文阅读。
相关推荐: