谁动了我的网络系列 之 ospf broadcast 类型 nat 结合 实验

 

 

 

 

R1 和R6充当主机的角色    同样其他的不说说了     上show run 嘞

 

 

 

r1#

r1#show run 

Building configuration...

 

Current configuration : 819 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r1

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

ip subnet-zero

no ip routing

!

!

no ip domain lookup

!

no ip cef

!

!         

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Ethernet0/0

 ip address 10.0.0.1 255.255.255.0

 no ip route-cache

 half-duplex

!

interface Ethernet0/1

 no ip address

 no ip route-cache

 shutdown

 half-duplex

!

interface Ethernet0/2

 no ip address

 no ip route-cache

 shutdown

 half-duplex

!

interface Ethernet0/3

 no ip address

 no ip route-cache

 shutdown

 half-duplex

!

!

ip default-gateway 10.0.0.2

ip http server

no ip http secure-server

ip classless

!         

!

!

!

!

!

!

!

!

!

!

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

!

!

end

 

r1#   

 

r2#show run 

Building configuration...

 

Current configuration : 1009 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r2

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

ip subnet-zero

!

!

!

ip cef

!

!

!

!         

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

!

interface Ethernet0/0

 ip address 10.0.0.2 255.255.255.0

 ip nat inside

 half-duplex

!         

interface Ethernet0/1

 ip address 192.168.0.2 255.255.255.0

 ip nat outside

 half-duplex

!

interface Ethernet0/2

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/3

 no ip address

 shutdown

 half-duplex

!

!

router ospf 100

 router-id 2.2.2.2

 log-adjacency-changes

 network 2.2.2.0 0.0.0.255 area 1

 network 192.168.0.0 0.0.0.255 area 1

!

ip nat inside source list 1 interface Ethernet0/1 overload

ip http server

no ip http secure-server

ip classless

!

!

access-list 1 permit 10.0.0.0 0.0.0.255

!

!

!

!

!

!

!

!

!

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

!

!

end       

 

r2#  

 

r3#show run

Building configuration...

 

Current configuration : 918 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r3

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

ip subnet-zero

!

!

!

ip cef

!

!

!

!         

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

 ip address 3.3.3.3 255.255.255.0

!

interface Ethernet0/0

 ip address 192.168.0.3 255.255.255.0

 half-duplex

!

interface Ethernet0/1

 ip address 172.16.0.3 255.255.255.0

 half-duplex

!

interface Ethernet0/2

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/3

 no ip address

 shutdown

 half-duplex

!

!

router ospf 100

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.0 0.0.0.255 area 0

 network 172.16.0.0 0.0.0.255 area 0

 network 192.168.0.0 0.0.0.255 area 1

!

ip http server

no ip http secure-server

ip classless

!

!

!

!

!

!

!

!

!

!

!

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

!

!

end

 

r3#  

 

r4#show run   

Building configuration...

 

Current configuration : 1036 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r4

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

ip subnet-zero

!

!

no ip domain lookup

!

ip cef

!

!

!         

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

 ip address 4.4.4.4 255.255.255.0

!

interface Ethernet0/0

 ip address 172.16.0.4 255.255.255.0

 half-duplex

!         

interface Serial1/0

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/1

 ip address 192.168.1.4 255.255.255.0

 serial restart-delay 0

!

interface Serial1/2

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/3

 no ip address

 shutdown

 serial restart-delay 0

!

!

router ospf 100

 router-id 4.4.4.4

 log-adjacency-changes

 network 4.4.4.0 0.0.0.255 area 0

 network 172.16.0.0 0.0.0.255 area 0

 network 192.168.1.0 0.0.0.255 area 2

!

ip http server

no ip http secure-server

ip classless

!

!

!

!

!

!

!

!

!

!

!

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

!

!

end

 

r4# 

 

 

r5#show run  

Building configuration...

 

Current configuration : 1032 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r5

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

ip subnet-zero

!

!

no ip domain lookup

!

ip cef

!

!

!         

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Loopback0

 ip address 5.5.5.5 255.255.255.0

!

interface Ethernet0/0

 ip address 20.0.0.5 255.255.255.0

 half-duplex

!         

interface Serial1/0

 ip address 192.168.1.5 255.255.255.0

 serial restart-delay 0

!

interface Serial1/1

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/2

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/3

 no ip address

 shutdown

 serial restart-delay 0

!

!

router ospf 100

 router-id 5.5.5.5

 log-adjacency-changes

 network 5.5.5.0 0.0.0.255 area 2

 network 20.0.0.0 0.0.0.255 area 2

 network 192.168.1.0 0.0.0.255 area 2

!

ip http server

no ip http secure-server

ip classless

!

!

!

!

!

!

!

!

!

!

!

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

!

!

end

 

r5#  

 

r6#show run

Building configuration...

 

Current configuration : 576 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname r6

!

boot-start-marker

boot-end-marker

!

!

no aaa new-model

ip subnet-zero

no ip routing

!

!

no ip domain lookup

!

no ip cef

!

!         

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface Ethernet0/0

 ip address 20.0.0.6 255.255.255.0

 no ip route-cache

 half-duplex

!

!         

ip default-gateway 20.0.0.5

ip http server

no ip http secure-server

ip classless

!

!

!

!

!

!

!

!

!

!

!

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

!

!

end       

 

r6#   

 

 

 

 

 

 

 

 

 

 

 

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

你可能感兴趣的:(NAT,休闲,ospf,broadcast类型,nat实验)