pc0配置:
IP:172.16.0.2
mask:255.255.255.0
gateway:172.16.0.1
DHCP配置:
IP:10.0.0.2
mask:255.255.255.0
gateway:10.0.0.1
地址池:10.0.0.4-10.0.0.255 掩码:255.255.255.0 网关:10.0.0.1 DNS:10.0.0.3
FTP:自动获取地址
Router0:
enable
configure terminalinterface f0/0
ip address 172.16.0.1 255.255.255.0(为接口配置IP)
no shutdown
interface s1/0
ip address 192.168.1.1 255.255.255.0
no shutdown
ip route 10.0.0.0 255.255.255.0 192.168.1.2 (配置静态路由)
end
copy running-config startup-config(保存配置)
Router1:
enable
configure termianl
interface s1/0
ip address 192.168.1.2 255.255.255.0(配置接口IP地址)
no shutdown
interface f0/0
ip address 10.0.0.1 255.255.255.0
no shutdown
exit
ip route 172.16.0.0 255.255.255.0 125.20.0.1 (配置静态路由)
end
wr(保存配置)