实验之―单臂路由

                昨天下午闲来无事把以前的实验-单臂路由做了一遍-
和大家一起分享容易出现的错误和注意事项、
我是用小凡做的!
!
!这是ROTER 0 的配置   f0/0  
interface FastEthernet0/0
 ip address 218.240.20.2 255.255.255.252     连接router 1 的口配置IP地址
 ip virtual-reassembly
 speed auto
 full-duplex
 no cdp enable
 no mop enabled
 
!这是ROTER 1 的配置 
interface FastEthernet0/0
 ip address 218.240.20.1 255.255.255.252  连接router 0 的口配置IP地址
 ip nat outside
 ip virtual-reassembly
 speed auto
 full-duplex
 no cdp enable
 no mop enabled
!
interface FastEthernet1/0                            连接switch 0 的口 在子接口封装
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet1/0.1
 encapsulation dot1Q 1 native
 ip address 192.168.1.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
!
interface FastEthernet1/0.2
 encapsulation dot1Q 2
 ip address 192.168.2.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 no cdp enable
!
interface FastEthernet1/0.3
 encapsulation dot1Q 3
 ip address 192.168.3.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
!
ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 218.240.20.2              默认路由
!
!
ip nat inside source list 1 interface FastEthernet0/0 overload             
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 1 permit 192.168.2.0 0.0.0.255
access-list 1 permit 192.168.3.0 0.0.0.255
!
!
!
control-plane
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 password admin
 logging synchronous
line aux 0
line vty 0 4
 login
!
 
!交换机的配置      
interface FastEthernet0/0
!
interface FastEthernet0/1
 duplex full
 no cdp enable
 no mop enabled
!
interface FastEthernet0/2
 switchport access vlan 2
 duplex full
 no cdp enable
 no mop enabled
!
interface FastEthernet0/3
 switchport access vlan 3
 no cdp enable
 no mop enabled
 
interface FastEthernet0/15             上联口--配置trunk模式
 switchport mode trunk
 
 
 

本文出自 “yiqi_nuli” 博客,谢绝转载!

你可能感兴趣的:(网络,职场,休闲)