【正文】
ccesslist 10 permit Router(config)accesslist 10 permit Router(config)ip nat pool ruijie mask Router(config)ip nat inside source list 10 pool ruijie Router(config)interface fa0/1 Router(configif)ip nat inside Router(configif)exit Router(config)interface fa0/0 Router(configif)ip nat outside Router(configif)exit Router(config) Router(config)router rip Router(configrouter)version 2 Router(configrouter)work Router(configrouter)work Router(configrouter) 、 交換機(jī) 的 配置 核心 Switch 的配置如下 : Switchenable Switchconfigure t Enter configuration mands, one per line. End with CNTL/Z. Switch(config)vlan 10 Switch(configvlan)vlan 20 Switch(configvlan)exit Switch(config)interface vlan 10 %LINK5CHANGED: Interface Vlan10, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface Vlan10, changed state to up Switch(configif)ip address Switch(configif)no shutdown Switch(configif)exit Switch(config)interface vlan 20 %LINK5CHANGED: Interface Vlan20, changed state to up %LINEPROTO5UPDOWN: Line protocol on Interface Vlan20, changed state to up Switch(configif)ip address 7 Switch(configif)no shutdown Switch(configif)exit Switch(config)interface fa0/2 Switch(configif)switchport mode trunk Command rejected: An interface whose trunk encapsulation is Auto can not be configured to trunk mode. Switch(configif)exit Switch(config)interface fa0/3 Switch(configif)switchport mode trunk Command rejected: An interface whose trunk encapsulation is Auto can not be configured to trunk mode. Switch(configif)exit Switch(config)interface fa0/1 Switch(configif)no switch %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/1, changed state to down %LIN