IP Cheat Sheet
IP Cheat Sheet
PAGE 1
IP CHEAT SHEET
PAGE 2
IP CHEAT SHEET
Configuration Example: vlan 4090 name Session-VLAN !—Does not have to be 4090
tag e 2/1 !—Link going between the two routers, called an ICL
stack unit 1
router-interface ve 200
priority 250
int ve 200
stack unit 2
ip addr 10.1.1.1/30
priority 250
lag blue dynamic
stack mac 0024.00e1.1111
ports ethernet 3/1 ethernet 4/1 !—Interfaces that go to non-MCT device
hitless-failover enable
primary port 3/1
deploy
Creating a Link Aggregation (Edge Switch) Cluster <name> <ID> !—ID must match on A and B
Prerequisites: The ports that are to be aggregated must be the same speed, rbridge-id 1 !—ID must be unique for each device
same VLAN, etc to be combined. session-vlan 4090
Notes: Depending on the device, there may be restrictions on which ports can keep-alive-vlan <#> !—vlan to use if ICL is lost
be combined to create aggregated links. Once created, all configurations for
the link aggregation group are done via the primary port. member-vlan 10 !—vlan(s) that are to traverse the LAG
Troubleshooting: show trunk icl <name> eth 2/1 !—define ICL to be used for this cluster
Static Configuration Example: peer <ip of B> rbridge-id <ID of B> icl <name from line above>
deploy
trunk e 1 to 2
client edge1
trunk deploy
rbridge-id 3 !—This ID must match on both A and B
PAGE 3
IP CHEAT SHEET
PAGE 4
IP CHEAT SHEET
vlan 10
spanning-tree 802-1w SNTP Time Server
spanning-tree 802-1w priority 256 Prerequisites: FastIron code 7.3 or greater, NetIron code 5.0 or greater.
int e 49 Notes: MD5 authenication of timeserver packets is optional
spanning-tree 802-1w admin-pt2pt-mac Troubleshooting: show sntp server, show sntp association
Configuration Example:
MSTP (802.1s) – IEEE based per Vlan Rapid Spanning Tree
! The following gets the time from another server using MD5 (optional) and
Prerequisites: VLAN created with ports assigned issues the time to clients
Notes: mstp name and revision number must be same across all switches. in sntp server 192.168.100.1 authentication 1 <secret>
the same region. MSTP operates just like RSTP.
sntp poll-interval 1800 !—Adjust polling interval if neccessary
Troubleshooting: show mstp config
sntp server-mode authentication <secret>
Configuration Example:
!
mstp name Campus ! The following issues the time to clients using the local time on the device
mstp revision 1
mstp instance 6 vlan 6 sntp server-mode use-local-clock stratum 3 authentication-key 2 <secret>
mstp instance 6 priority 8192 !
mstp admin-pt2pt-mac ethe 1/5 to 1/20 ! Specify which interface to use as the server
mstp start ip sntp source-interface loopback 1
PAGE 5
IP CHEAT SHEET
Notes: Passive interface do not transmit OSPF hello’s. This is for security on
Enabling MAC-Based Port Security subnets that don’t have neighboring routers. Additionally, consider MD5
Notes: Interface can be set up to accept a certain number of MAC address authentication of neighbors. Configuring a loopback interface is recommended
per port and automatically shutdown/restrict the port if mac changes or more as the router-id for OSPF.
than number of mac addresses are discovered on the port. Troubleshooting: show ip ospf
Troubleshooting: show port security, clear port security Configuration Example:
Configuration Example: interface loopback 1
port-security ip address 192.168.100.1/32
violation shutdown 10 !—shutdown the port for 10 min router ospf
autosave 60 !—save learned macs to flash every 60 min area 0
int e 1 to 24 int e 1
port security ip ospf area 0
enable ip ospf md5-authentication key-id 1 key <shared key>
maximum 1 !—Note: 1 is the default, so this command will not show int ve 10
ip opsf area 0
Enabling Multicast for Layer-2 Switches ip ospf passive
Notes: By default, ICMP snooping is disable. This means that any multicast
packet will be treated as a broadcast packet. Active should only be used Configuring VRRP
when no routers are configured for IGMP/PIM in the network.
Prerequisites: Switch is running Full Layer-3 code and IP address are
Configuration Example: already assigned to interface or virtual interfaces.
Ip multicast passive Notes: VRRP provides redundancy for routers. One router is the owner of the
In
IP and one (or more) routers backup the owner of the IP.
Configuring Router Interfaces Troubleshooting: show ip vrrp brief
Configuration Example:
Prerequisites: Switch is in Full Layer-3 code
Notes: The route-only statement ensures that no broadcast will leak between ROUTER A:
the ports that are assigned to the same VLAN. Doing this precludes the need router vrrp
to have every port in its own VLAN.
int ve 10
Troubleshooting: show ip int
ip address 192.168.10.1/24
Configuration Example:
ip vrrp-extended vrid 10
int e 1 owner
ip address 192.168.10.1/24 ip-address 192.168.10.1
route-only activate
ROUTER B:
Configuring Virtual Router Interfaces
router vrrp
Prerequisites: Switch is in Base Layer-3 or Full Layer-3 code and ports are int ve 10
assigned to a VLAN.
ip address 192.168.10.2/24
Notes: This is to assign a router interface to a group of ports with a VLAN.
ip vrrp vrid 10
Troubleshooting: show ip int
backup priority 150
Configuration Example:
ip-address 192.168.10.1
vlan 10 advertise backup
untagged e 1 to 2 activate
router-interface ve 10
interface ve 10 Configuring VRRP-Extended
ip address 192.168.10.1/24 Prerequisites: Switch is running Full Layer-3 code and IP address are
already assigned to interface or virtual interfaces.
Configuring Static Routes Notes: VRRP Extended is similar to VRRP, except all routers are configured
as backups and the backup router with the highest priority is the Master for
Prerequisites: Switch is running Base Layer-3 or Full Layer-3 code and IP
the IP. In addition, VRRP Extended introduces track-ports. For each track port
address are already assigned to interface or virtual interfaces.
that is down, the track priority is subtracted from the overall priority. In the
Notes: Although the next hop can be the interface name, Do NOT use this. example below, if Router A’s track port is down, the overall priority would be
Always specify the IP address of the next router for which the packets should 170. Since 170 would be lower than Router B’s priority of 180, Router B will
be sent to. become Master. This is useful to have VRRP-E follow the status of the uplinks
Troubleshooting: show ip route from the devices.
Configuration Example: Troubleshooting: show ip vrrp-e brief
Configuration Example:
ip route 192.168.10.0/24 192.168.2.1
ROUTER A:
Configuring OSPF router vrrp-extended
Prerequisites: Switch is running Full Layer-3 code and IP address are int ve 10
already assigned to interface or virtual interfaces ip address 192.168.10.2/24
PAGE 6
IP CHEAT SHEET
ip vrrp-extended vrid 10
backup priority 200 track-priority 30
track-port ethernet 1/1
ip-address 192.168.10.1
advertise backup
activate
ROUTER B:
router vrrp-extended
int ve 10
ip address 192.168.10.3/24
ip vrrp-extended vrid 10
backup priority 180 track-priority 30
track-port ethernet 2/2
ip-address 192.168.10.1
advertise backup
activate
router pim
int e 1/1
ip pim
In
PAGE 7
IP CHEAT SHEET
PAGE 8
IP CHEAT SHEET
PAGE 9
IP CHEAT SHEET
Configuring VRRPv3
Prerequisites: IPv6 Router (NetIron)
Notes: VRRP provides redundancy for routers. Two (or more) routers
backup a single IPv6 Address. A common link-local address has to be
configured.
Troubleshooting: show ipv6 vrrp brief
Configuration Example:
ROUTER A:
ipv6 router vrrp
int ve 10
ipv6 enable
ipv6 address fe80::1 link-local
ipv6 address 2001:470:10::1/64
ipv6 vrrp vrid 10
owner
ipv6-address fe80::1
ipv6-address 2001:470:10::1
advertise backup
activate
ROUTER B:
ipv6 router vrrp
int ve 10
ipv6 enable
ipv6 address fe80::2 link-local
ipv6 address 2001:470:10::2/64
ipv6 vrrp vrid 10
backup priority 100
ipv6-address fe80::1
ipv6-address 2001:470:10::1
advertise backup
activate
PAGE 10