Router> enable '进入特权模式 PassWord: '特权用户口令 Router# configure terminal '进入配置模式 Enter configuration commands one per line. End with CNTL/Z. Routerconfig# interface Ethernet 0 '进入外部以太网口配置 Routerconfig-if# ip address 192.168.0.11 255.255.255.0 '进入AUI0接口的IP地址配置为192.168.0.11,子网掩码为255.255.255.0。 2.配置静态路由表
Router> enable Password: Router# config terminal Enter configuration commands one per line. End with CNTL/Z. Routerconfig# ip route 192.168.2.0 255.255.255.0 192.168.0.1 '配置进入AUI0接口的IP地址。
3.配置动态OSPF路由
Router> enable Password: Router# config terminal Enter configuration commands one per line. End with CNTL/Z. Routerconfig# router ospf 1 Routerconfig-router# network 192.168.0.0 0.0.0.255 area 0.0.0.0