1. 有三个路由器,怎么写两边两个路由器的路由表
假设:
R1网段为:10.10.10.0/24
R2网段为:20.20.20.0/24
R3网段为:30.30.30.0/24
R1:
R1#sh run
Building configuration。
Current configuration : 534 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
interface FastEthernet0/0
ip address 1.1.1.1 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 10.10.10.1 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 10.10.10.0 0.0.0.255 area 0
network 1.1.1.0 0.0.0.3 area 0
!
ip classless
!
line con 0
line vty 0 4
login
!
!
endR2:
(略)
R3:
R3#sh run
Building configuration。
Current configuration : 534 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R3
!
interface FastEthernet0/0
ip address 1.1.2.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 30.30.30.1 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 30.30.30.0 0.0.0.255 area 0
network 1.1.2.0 0.0.0.3 area 0
!
ip classless
!
line con 0
line vty 0 4
login
!
!
end