Router-language: Difference between revisions
| Line 71: | Line 71: | ||
Port Link State Dupl Speed Trunk Tag Priori MAC Name | Port Link State Dupl Speed Trunk Tag Priori MAC Name | ||
ve10 Up N/A N/A N/A None N/A N/A 0012.f286.... | ve10 Up N/A N/A N/A None N/A N/A 0012.f286.... | ||
</syntaxhighlight> | |||
=== ip traffic === | |||
<syntaxhighlight lang=visualfoxpro > | |||
#show ip traffic | |||
IP Statistics | |||
249333533 received, 92410 sent, 248630753 forwarded | |||
0 filtered, 0 fragmented, 0 reassembled, 4480 bad header | |||
495 no route, 0 unknown proto, 0 no buffer, 43582 other errors | |||
ARP Statistics | |||
151530 total recv, 149155 req recv, 214351 req sent, 67830 rep sent | |||
0 pending drop, 0 invalid source, 0 invalid dest | |||
ICMP Statistics | |||
Received: | |||
13364 total, 25 errors, 103 unreachable, 25 time exceed | |||
0 parameter, 0 source quench, 0 redirect, 13202 echo, | |||
9 echo reply, 0 timestamp, 0 timestamp reply, 0 addr mask | |||
0 addr mask reply, 0 irdp advertisement, 0 irdp solicitation | |||
Sent: | |||
55536 total, 0 errors, 38105 unreachable, 4205 time exceed | |||
24 parameter, 0 source quench, 0 redirect, 0 echo, | |||
13202 echo reply, 0 timestamp, 0 timestamp reply, 0 addr mask | |||
0 addr mask reply, 0 irdp advertisement, 0 irdp solicitation | |||
UDP Statistics | |||
173951 received, 15129 sent, 119850 no port, 0 input errors | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 22:02, 1 March 2012
Foundry
enable
- when logged in, the "enable" command give you the administration rights
- in this status we can monitor e check configuration.
<syntaxhighlight lang=visualfoxpro > $ enable password...
- _
</syntaxhighlight>
- entering in "edit configuration" mode, you can edit the configuration, live! be very careful
<syntaxhighlight lang=visualfoxpro > config [te] password... (config)# </syntaxhighlight>
- after making changes, you can check them with this command (because "show config" will give you the configuration saved in memory, not the running one that you just modified.
<syntaxhighlight lang=visualfoxpro > (config)# show running-config [...] </syntaxhighlight>
- after all your checks, this is the command to save the changes permanently.
<syntaxhighlight lang=visualfoxpro > (config)# write memory
</syntaxhighlight>
- an option to backup the configuration is to copy it by TFTP to a server.
<syntaxhighlight lang=visualfoxpro >
- copy running-config tftp 1.2.3.123 router-config-20122112.txt
#Upload running-config to TFTP server done.
</syntaxhighlight>
show cpu
show cpu <syntaxhighlight lang=visualfoxpro > 31 percent busy, from 3248 sec ago 1 sec avg: 31 percent busy 5 sec avg: 31 percent busy 60 sec avg: 31 percent busy
300 sec avg: 31 percent busy </syntaxhighlight>
- cpu/process utilizaiton
<syntaxhighlight lang=visualfoxpro >
- show process cpu
Process Name ACL ARP BGP DOT1X GVRP ICMP IP L2VLAN OSPF RIP STP VRRP 5Sec(%) 1Min(%) 0.00 0.00 0.01 0.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 5Min(%) 15Min(%) Runtime(ms) 0.00 0.00 0 0.01 0.01 714 0.00 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 0.00 161 0.00 0.00 229 0.00 0.01 673 0.00 0.00 0 0.00 0.00 9 0.00 0.00 7 0.00 0.00 0 </syntaxhighlight>
port status short
- show interface brief
<syntaxhighlight lang=visualfoxpro > Port Link State Dupl Speed Trunk Tag Priori MAC Name 1 Up Forward Full 1G None No level0 0012.f286.... 2 Disable None None None None No level0 0012.f286....
Port Link State Dupl Speed Trunk Tag Priori MAC Name ve10 Up N/A N/A N/A None N/A N/A 0012.f286.... </syntaxhighlight>
ip traffic
<syntaxhighlight lang=visualfoxpro >
- show ip traffic
IP Statistics
249333533 received, 92410 sent, 248630753 forwarded 0 filtered, 0 fragmented, 0 reassembled, 4480 bad header 495 no route, 0 unknown proto, 0 no buffer, 43582 other errors
ARP Statistics
151530 total recv, 149155 req recv, 214351 req sent, 67830 rep sent 0 pending drop, 0 invalid source, 0 invalid dest
ICMP Statistics Received:
13364 total, 25 errors, 103 unreachable, 25 time exceed 0 parameter, 0 source quench, 0 redirect, 13202 echo, 9 echo reply, 0 timestamp, 0 timestamp reply, 0 addr mask 0 addr mask reply, 0 irdp advertisement, 0 irdp solicitation
Sent:
55536 total, 0 errors, 38105 unreachable, 4205 time exceed 24 parameter, 0 source quench, 0 redirect, 0 echo, 13202 echo reply, 0 timestamp, 0 timestamp reply, 0 addr mask 0 addr mask reply, 0 irdp advertisement, 0 irdp solicitation
UDP Statistics
173951 received, 15129 sent, 119850 no port, 0 input errors
</syntaxhighlight>
MAC address table
show mac-address
<syntaxhighlight lang=visualfoxpro > Total active entries from all ports = 69 MAC-Address Port Type Index VLAN 0800.270c.ce47 5 Dynamic 30 113 0011.7800.9a44 8 Dynamic 14232 200 </syntaxhighlight>
ethernet data flow statistics
- show rmon statistics
<syntaxhighlight lang=visualfoxpro > Ethernet statistics 1 is active, owned by monitor
Interface 1 (ifIndex 1) counters
Octets 62219423556
Drop events 0 Packets 74215428
Broadcast pkts 613 Multicast pkts 83808
CRC align errors 0 Undersize pkts 0
Oversize pkts 0 Fragments 0
Jabbers 0 Collisions 0
Packet size counters
64 8199939 65 to 127 21283872
128 to 255 2667477 256 to 511 1406813
512 to 1023 2001555 1024 to 1518 38655772
</syntaxhighlight>
ethernet details
- show interface ethernet 1
<syntaxhighlight lang=visualfoxpro > GigabitEthernet1 is up, line protocol is up
Hardware is GigabitEthernet, address is 0012.f286.7e40 (bia 0012.f286.7e40) Configured speed auto, actual 1Gbit, configured duplex fdx, actual fdx Configured mdi mode AUTO, actual MDI Member of L2 VLAN ID 10, port is untagged, port state is FORWARDING BPDU guard is Disabled, ROOT protect is Disabled Link Error Dampening is Disabled STP configured to ON, priority is level0 Flow Control is config enabled, oper enabled, negotiation disabled mirror disabled, monitor disabled Not member of any active trunks Not member of any configured trunks No port name IPG MII 96 bits-time, IPG GMII 96 bits-time IP MTU 1500 bytes, encapsulation ethernet 300 second input rate: 262016 bits/sec, 119 packets/sec, 0.02% utilization 300 second output rate: 1558744 bits/sec, 178 packets/sec, 0.15% utilization 35819040 packets input, 31760156880 bytes, 0 no buffer Received 559 broadcasts, 83280 multicasts, 35735201 unicasts 0 input errors, 0 CRC, 0 frame, 0 ignored 0 runts, 0 giants 38293277 packets output, 30371035971 bytes, 0 underruns Transmitted 53 broadcasts, 0 multicasts, 38293224 unicasts 0 output errors, 0 collisions
</syntaxhighlight>
ip routes
show ip
<syntaxhighlight lang=visualfoxpro > Global Settings
ttl: 64, arp-age: 10, bootp-relay-max-hops: 4 router-id : 0.0.0.0 enabled : UDP-Broadcast-Forwarding Source-Route Load-Sharing RARP disabled: Route-Only Directed-Broadcast-Forwarding IRDP Proxy-ARP RIP DVMRP VRRP VRRP-Extended
Static Routes
Index IP Address Subnet Mask Next Hop Router Metric Distance 1 0.0.0.0 0.0.0.0 145.145.24.140 1 1 0 2 192.168.251.0 255.255.255.0 192.168.252.1 1 1 0
</syntaxhighlight>
ip interface networks
<syntaxhighlight lang=visualfoxpro > show ip interface Interface IP-Address OK? Method Status Protocol Ve 10 145.145.24.138 YES NVRAM up up Ve 100 195.169.98.33 YES NVRAM up up Ve 101 195.169.98.129 YES NVRAM up up Ve 102 195.169.98.193 YES NVRAM up up Ve 103 195.169.98.225 YES NVRAM up up Ve 104 195.169.98.241 YES NVRAM up up Ve 105 195.169.98.249 YES NVRAM up up Ve 106 195.169.98.17 YES NVRAM up up Ve 111 195.169.98.65 YES NVRAM up up Ve 112 195.169.98.81 YES NVRAM up up Ve 113 195.169.98.97 YES NVRAM up up Ve 200 192.168.252.74 YES NVRAM up up </syntaxhighlight>
VLAN detail
- show vlans
<syntaxhighlight lang=visualfoxpro > Total PORT-VLAN entries: 19 Maximum PORT-VLAN entries: 4095 PORT-VLAN 1, Name DEFAULT-VLAN, Priority level0, Spanning tree Off
Untagged Ports: 2 3 4 19 20 Tagged Ports: None Uplink Ports: None DualMode Ports: None
</syntaxhighlight>
virtual ethernet configuration
- is the ip configuration of the vlan subnet
<syntaxhighlight lang=visualfoxpro >
interface ve 300
port-name v-secondary ip access-group 300 in ip address 1.2.1.1 255.255.255.240
! interface ve 100
port-name v-primary ip address 1.2.3.1 255.255.252.0
</syntaxhighlight>
access list per IP
- access list used by virtual ethernet
<syntaxhighlight lang=visualfoxpro >
access-list 10 permit 1.2.3.0 0.0.3.255 access-list 10 permit 1.2.1.0 0.0.0.255 access-list 10 deny any log
access-list 300 deny ip any 1.2.3.0 0.0.3.255 log access-list 300 deny ip any 1.2.1.0 0.0.0.255 log access-list 300 permit ip any any
access-list 103 permit ip any 1.2.5.0 0.0.0.255 </syntaxhighlight>
set DNS
- add 3 DNS servers:
<syntaxhighlight lang=python > ip dns server-address 1.2.3.4 10.11.12.13 101.102.103.104 </syntaxhighlight>
- del 1 DNS server:
<syntaxhighlight lang=python > no ip dns server-address 10.11.12.13 </syntaxhighlight>
SSH management config
<syntaxhighlight lang=visualfoxpro >
ip ssh key-authentication no ip ssh source-interface ve 200
</syntaxhighlight>
add port to VLAN
<syntaxhighlight lang=visualfoxpro >
- add tagged port:
# vlan 4 (vlan-4)# tag ethe 11 # end
- add untagged port
(vlan-4)# untag ethe 11 # end
</syntaxhighlight>
remove port from VLAN
<syntaxhighlight lang=visualfoxpro >
- remove un-tagged port:
#vlan 4 (vlan-4)# no untag ethe 11 # end
- tagged port
(vlan-4)# no tag ethe 11 # end
</syntaxhighlight>
change temperature warning level
- temperature at when the device will give warning
# temperature warning 47
- temperature at when the device will shut down
# temperature shutdown 57
- change the polling time interval
# chassis poll-time 200