直连&静态路由实验命令

  • 格式:txt
  • 大小:3.73 KB
  • 文档页数:2


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)#

下载文档原格式

  / 2

相关主题