首 页 | 兆通产品部 | 兆通工程部 | 兆通维护部 | 兆通销售站 | 天猫店铺 | 技术中心 | 方案中心 | 典型案例 | 兆通论坛
当前页面:首页>>静态路由的应用配置实例3
[2009-9-4]
 
Switch#

    Switch 1的配置:

    Switch>
    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/1
    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)#ip add
    Switch(config-if)#ip address 2.2.2.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/2
    Switch(config-if)#ip add
    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 ad
    Switch(config-if)#ip address 3.3.3.1 255.0.0.0
    Switch(config-if)#noshut
    Switch(config-if)#noshut
                        ^
    % Invalid input detected at '^' marker.

    Switch(config-if)#no shut
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#ip rout
    Switch(config)#ip route
    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/1
    Switch(config)#ip route 4.0.0.0 255.0.0.0 fastEthernet 0/2
    Switch(config)#exit
    %SYS-5-CONFIG_I: Configured from console by console
    Switch#ping 1.1.1.2

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
    .!!!!
    Success rate is 80 percent (4/5), round-trip min/avg/max = 47/59/63 ms

    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 = 47/59/63 ms

    Switch#ping 2.2.2.1

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 2.2.2.1, 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.2

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


[返回列表]

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