一样的 先上拓扑
考虑实际情况,我在服务器上加了交换机,因为现实网络中基本不会用路由端口去联服务器
服务器:
拓扑:
R1配置:
Router# show run
Building configuration...
Current configuration : 844 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip helper-address 192.168.100.2
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.2.1 255.255.255.0
ip helper-address 192.168.100.2
duplex auto
speed auto
!
interface Serial2/0
no ip address
ipv6 ospf cost 781
clock rate 2000000
shutdown
!
interface Serial3/0
no ip address
ipv6 ospf cost 781
clock rate 2000000
shutdown
!
interface FastEthernet4/0
ip address 192.168.100.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet5/0
no ip address
duplex auto
speed auto
shutdown
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
注:下面有PKZ文件下载的