首 页 | 兆通产品部 | 兆通工程部 | 兆通维护部 | 兆通销售站 | 天猫店铺 | 技术中心 | 方案中心 | 典型案例 | 兆通论坛
当前页面:首页>>静态路由的应用配置实例4
[2009-9-4]
 
   Switch#show ip rou
    Switch#show ip route
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
           i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
           * - candidate default, U - per-user static route, o - ODR
           P - periodic downloaded static route

    Gateway of last resort is not set

    S    1.0.0.0/8 is directly connected, FastEthernet0/1
    C    2.0.0.0/8 is directly connected, FastEthernet0/1
    C    3.0.0.0/8 is directly connected, FastEthernet0/2
    S    4.0.0.0/8 is directly connected, FastEthernet0/2
    Switch#


    Switch 2 的配置:
    Switch>en
    Switch>enable
    Switch#conf
    Switch#configure
    Switch#configure terminal
    Enter configuration commands, one per line.  End with CNTL/Z.
    Switch(config)#int
    Switch(config)#interface f
    Switch(config)#interface fastEthernet 0/2
    Switch(config-if)#no sw
    Switch(config-if)#no switchport

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to upSwitch(config-if)#
    Switch(config-if)#ip add
    Switch(config-if)#ip address 3.3.3.2 255.0.0.0
    Switch(config-if)#no shut
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#int
    Switch(config)#interface f
    Switch(config)#interface fastEthernet 0/1
    Switch(config-if)#ip add
    Switch(config-if)#no sw
    Switch(config-if)#no switchport

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch(config-if)#
    Switch(config-if)#ip add
    Switch(config-if)#ip address 4.4.4.1 255.0.0.0
    Switch(config-if)#no shut
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#ip route 1.0.0.0 255.0.0.0 f
    Switch(config)#ip route 1.0.0.0 255.0.0.0 fastEthernet 0/2
    Switch(config)#exit
    %SYS-5-CONFIG_I: Configured from console by console
    Switch#ping 4.4.4.2

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 4.4.4.2, timeout is 2 seconds:
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms

    Switch#ping 3.3.3.1

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 3.3.3.1, timeout is 2 seconds:
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms
    Switch#show ip route
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
           i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
           * - candidate default, U - per-user static route, o - ODR
           P - periodic downloaded static route

    Gateway of last resort is not set

    S    1.0.0.0/8 is directly connected, FastEthernet0/2
    C    3.0.0.0/8 is directly connected, FastEthernet0/2
    C    4.0.0.0/8 is directly connected, FastEthernet0/1


[返回列表]

首页 | 网络工程 | 综合布线 | 安防监控 摄像头 摄像机 | 方案中心 | 技术中心 | TOP | 典型案例
电话:025-83693855
Copyright © 2005-2006 All Rights Reserved
南京总部: 南京市珠江路成贤大厦7楼