直连&静态路由实验命令

合集下载
相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。


ZXR10>en
Password:
ZXR10#con t
Enter configuration commands, one per line. End with CTRL/Z.
ZXR10(config)#show vl
VLAN Name PvidPorts UntagPorts TagPorts
--------------------------------------------------------------------------------
1 VLAN0001 fei_1/1-24,
gei_1/25-26

ZXR10(config)#
15:05:23 05/10/2011 UTC alarm 512 cleared %PORT% Interface up on fei_1/1 sent by MCP
15:05:25 05/10/2011 UTC alarm 16389 occurred %ROS% SNMP agent on host ZTE is undergoing a cold start sent by MCP
15:05:28 05/10/2011 UTC alarm 512 cleared %PORT% Interface up on fei_1/24 sent by MCPvlan 30
ZXR10(config-vlan30)#switchport pvid fei_1/1
ZXR10(config-vlan30)#exit
ZXR10(config)#interface vlan 30
ZXR10(config-if-vlan30)#
15:06:38 05/10/2011 UTC alarm 18721 cleared %IP% Interface up on vlan30 sent by MCPip add 30.30.30.1 255.255.255.0
ZXR10(config-if-vlan30)#exit
ZXR10(config)#interface fei_1/24
ZXR10(config-fei_1/24)#switchport acc vlan 2
ZXR10(config-fei_1/24)#exit
ZXR10(config)#interface vlan 2
ZXR10(config-if-vlan2)#
15:07:27 05/10/2011 UTC alarm 18721 cleared %IP% Interface up on vlan2 sent by MCPip address 192.168.1.2 255.255.255.252
ZXR10(config-if-vlan2)#exit
ZXR10(config)#show vlan
VLAN Name PvidPorts UntagPorts TagPorts
--------------------------------------------------------------------------------
1 VLAN0001 fei_1/2-23,
gei_1/25-26
2 VLAN0002 fei_1/24
30 VLAN0030 fei_1/1

ZXR10(config)#ip route 10.10.10.0 255.255.255.0 192.168.1.1
ZXR10(config)#show ip route
IPv4 Routing Table:
Dest Mask Gw Interface Owner Pri Metric
10.10.10.0 255.255.255.0 192.168.1.1 vlan2 static 1 0
30.30.30.0 255.255.255.0 30.30.30.1 vlan30 direct 0 0
30.30.30.1 255.255.255.255 30.30.30.1 vlan30 address 0 0
192.168.1.0 255.255.255.252 192.168.1.2 vlan2 direct 0 0
192.168.1.2 255.255.255.255 192.168.1.2 vlan2 address 0 0
ZXR10(config)#ip route 10.10.10.0 255.255.255.0 192.168.1.1
ZXR10(config)#show ip route
IPv4 Routing Table:
Dest Mask Gw Interface Owner Pri Metric
10.10.10.0 255.255.255.0 192.168.1.1 vlan2 static 1 0
30.30.30.0 255.255.255.0 30.30.30.1 vlan30 direct 0 0
30.30.30.1 255.255.255.255 30.30.30.1 vlan30 address 0 0
192.168.1.0 255.255.255.252 192.168.1.2 vlan2 direct 0 0
192.168.1.2 255.255.255.255 192.168.1.2 vlan2 address 0 0
ZXR10(config)#show ip rou
IPv4 Routing Table:

Dest Mask Gw Interface Owner Pri Metric
10.10.10.0 255.255.255.0 192.168.1.1 vlan2 static 1 0
30.30.30.0 255.255.255.0 30.30.30.1 vlan30 direct 0 0
30.30.30.1 255.255.255.255 30.30.30.1 vlan30 address 0 0
192.168.1.0 255.255.255.252 192.168.1.2 vlan2 direct 0 0
192.168.1.2 255.255.255.255 192.168.1.2 vlan2 address 0 0
ZXR10(config)#no ip route ?
A.B.C.D Prefix of destination IP address
vrf Set static route for a VPN Routing/Forwarding
ZXR10(config)#no ip route
% Incomplete command.
ZXR10(config)#no ip route 30.30.30.1
% Incomplete command.
ZXR10(config)#no ip route 10.10.10.0 255.255.255.0
ZXR10(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
ZXR10(config)#

相关文档
最新文档