Monday, December 16, 2019

Router & Switch Basics with Crème brûlée

In Houston with Nick Faul and Nick McKinney at Tout Suite coffee/cafe house, because in networking 2 Nicks are always better than 1.



Router IP assignment
(config terminal) interface Fastethernet0/1;
(config if) ip address 192.168.1.1   255.255.255.0;
no shutdown

Switch IP assignment is on VLAN 1 (this is a Switch Virtual Interface SVI) -
(config terminal)Interface VLAN 1;
(config if) ip address 192.168.1.10   255.255.255.0
(config if) no shutdown   (not necessary on a switch but a good habit)
(config t) ip default-gateway 192.168.1.1     (is the switch need connectivity to and from other networks)

(config t) hostname SW1
(Config t) interface FastEthernet 0/1
(config if) description Port to Router1

(config if) speed 100   (do these for critical links between routers, SW's, & servers)
(config if) duplex full (half)   (both of these must match on both sides of the link)

Common commands
Show running-config
Show ip interface brief                        ( lists all interfaces on device)
Show run interface FastEthernet 0/1    (only show running-config on the interface)
Show interface FastEthernet 0/1          (shows MAC, packet totals, errors)
Show version


CDP (Cisco Discovery Protocol - Cisco proprietary, layer 2 protocol for only Cisco devices and software, it's enable by default but could be seen as a security concern )
Show cdp                             (shows if CDP is enable)
Show cdp neighbors              (show brief output of devices)
Show cdp neighbors detail     (detailed output)
(config t) cdp run                  (this enables cdp, but it is on by default)
(config t) no cdp run             (disables cdp globally)
(config if) no cdp enable        (just turns it off on this interface)

LLDP - Link Layer Discovery Protocol - open standard, but is not available on older devices
Show lldp                             (show if llcp is enabled)
Show lldp  neighbors             (sh brief output of devices)
Show lldp neightbors detail    (detailed output)
(config t) lldp run
(config t) no lldp run             (turns off globally)
(config if) no lldp transmit     (interface off to transmit lldp info to other devices)
(config if) no lldp receive       (interface off to receive lldp info from other devices)

No comments:

Post a Comment

Spanning Tree