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