在CISCO上做单臂路由
生活随笔
收集整理的這篇文章主要介紹了
在CISCO上做单臂路由
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
實驗環(huán)境: CISCO 2620??? 1 CISCO 2950??? 3 PC????????????????????2 實驗目的: 使PC0與PC1能夠正常通信 實驗命令 R1: version 12.2
no service password-encryption
!
hostname r1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 10.1.1.254 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.2.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
end SW1: version 12.2
no service password-encryption
!
hostname r1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 10.1.1.254 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.2.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
end SW2: version 12.2
no service password-encryption
!
hostname r1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 10.1.1.254 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.2.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
end SW3: version 12.2
no service password-encryption
!
hostname r1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 10.1.1.254 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.2.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
end 最終結(jié)果
no service password-encryption
!
hostname r1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 10.1.1.254 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.2.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
end SW1: version 12.2
no service password-encryption
!
hostname r1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 10.1.1.254 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.2.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
end SW2: version 12.2
no service password-encryption
!
hostname r1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 10.1.1.254 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.2.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
end SW3: version 12.2
no service password-encryption
!
hostname r1
!
!
!
!
!
ip ssh version 1
no ip domain-lookup
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 10.1.1.254 255.255.255.0
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.2.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
end 最終結(jié)果
轉(zhuǎn)載于:https://blog.51cto.com/qianhui/269058
總結(jié)
以上是生活随笔為你收集整理的在CISCO上做单臂路由的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 博弈论的局限性(博弈论的诡计)
- 下一篇: Hadoop框架:HDFS简介与Shel