Difference between revisions of "Router-language"

From Alessandro's Wiki
(Created page with " <syntaxhighlight lang=php > $ enable # config [te] (config)# (config)# (config)# show running-config (config)# write memory # </syntaxhighlight> * set ip dns server-addres...")
 
Line 1: Line 1:


== Foundry / Cisco IOS ==


<syntaxhighlight lang=php >
<syntaxhighlight lang=visualfoxpro >
$ enable
$ enable
# config [te]
# config [te]
Line 10: Line 11:
#  
#  
</syntaxhighlight>
</syntaxhighlight>
* set
* set
<syntaxhighlight lang=python >
ip dns server-address 195.169.98.130 195.169.98.169
ip dns server-address 195.169.98.130 195.169.98.169
</syntaxhighlight>


 
* show interface brief
 
<syntaxhighlight lang=visualfoxpro >
 
# show interface brief
 
Port  Link    State    Dupl Speed Trunk Tag Priori MAC            Name         
Port  Link    State    Dupl Speed Trunk Tag Priori MAC            Name         
1    Up      Forward  Full 1G    None  No  level0 0012.f286....               
1    Up      Forward  Full 1G    None  No  level0 0012.f286....               
Line 24: Line 25:
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>


BR-SSH@coresw1#show mac-address
* show mac-address
<syntaxhighlight lang=visualfoxpro >
Total active entries from all ports = 69
Total active entries from all ports = 69
MAC-Address    Port        Type      Index      VLAN  
MAC-Address    Port        Type      Index      VLAN  
0800.270c.ce47  5            Dynamic    30        113   
0800.270c.ce47  5            Dynamic    30        113   
0011.7800.9a44  8            Dynamic    14232      200   
0011.7800.9a44  8            Dynamic    14232      200   
</syntaxhighlight>


 
* show rmon statistics
show rmon statistics
<syntaxhighlight lang=visualfoxpro >
Ethernet statistics 1 is active, owned by monitor
Ethernet statistics 1 is active, owned by monitor
  Interface 1 (ifIndex 1) counters
  Interface 1 (ifIndex 1) counters
Line 46: Line 50:
       128 to 255              2667477          256 to 511              1406813
       128 to 255              2667477          256 to 511              1406813
       512 to 1023              2001555        1024 to 1518            38655772
       512 to 1023              2001555        1024 to 1518            38655772
</syntaxhighlight>


 
* show interface ethernet 1
 
<syntaxhighlight lang=visualfoxpro >
 
 
 
 
BR-SSH@coresw1#show interface ethernet 1
GigabitEthernet1 is up, line protocol is up  
GigabitEthernet1 is up, line protocol is up  
   Hardware is GigabitEthernet, address is 0012.f286.7e40 (bia 0012.f286.7e40)
   Hardware is GigabitEthernet, address is 0012.f286.7e40 (bia 0012.f286.7e40)
Line 78: Line 78:
   Transmitted 53 broadcasts, 0 multicasts, 38293224 unicasts
   Transmitted 53 broadcasts, 0 multicasts, 38293224 unicasts
   0 output errors, 0 collisions
   0 output errors, 0 collisions
</syntaxhighlight>




 
* show ip
show ip
<syntaxhighlight lang=visualfoxpro >
Global Settings
Global Settings
   ttl: 64, arp-age: 10, bootp-relay-max-hops: 4
   ttl: 64, arp-age: 10, bootp-relay-max-hops: 4
Line 91: Line 92:
   1      0.0.0.0          0.0.0.0          145.145.24.140    1      1 0
   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
   2      192.168.251.0    255.255.255.0    192.168.252.1    1      1 0
</syntaxhighlight>






 
* show vlans
# show vlans
<syntaxhighlight lang=visualfoxpro >
 
Total PORT-VLAN entries: 19
Total PORT-VLAN entries: 19
Maximum PORT-VLAN entries: 4095
Maximum PORT-VLAN entries: 4095
Line 104: Line 105:
   Uplink Ports: None
   Uplink Ports: None
  DualMode Ports: None
  DualMode Ports: None
</syntaxhighlight>

Revision as of 14:12, 25 February 2012

Foundry / Cisco IOS

$ enable
# config [te]
(config)#
(config)# 
(config)# show running-config
(config)# write memory
#
  • set
ip dns server-address 195.169.98.130 195.169.98.169
  • show interface brief
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....
  • show mac-address
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
  • show rmon statistics
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
  • show interface ethernet 1
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


  • show ip
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


  • show vlans
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