ne:cisco
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ne:cisco [2023/09/02 14:51] – [Zugriff per SSH] admin | ne:cisco [2026/07/05 13:49] (aktuell) – [DHCP] admin | ||
|---|---|---|---|
| Zeile 7: | Zeile 7: | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[.: | ||
| ==== Login & Password ==== | ==== Login & Password ==== | ||
| Zeile 32: | Zeile 34: | ||
| echo ' | echo ' | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| ==== Login direkt in den privilegierten Modus ==== | ==== Login direkt in den privilegierten Modus ==== | ||
| Zeile 41: | Zeile 46: | ||
| Router(config)# | Router(config)# | ||
| </ | </ | ||
| - | ==== NETCONF & RESTCONF ==== | ||
| - | < | + | ---- |
| - | Router(config)# | + | |
| - | Router(config)# | + | |
| - | Router(config)# | ||
| - | Router(config)# | ||
| - | </ | ||
| - | * https:// | ||
| ==== Proxy ARP ==== | ==== Proxy ARP ==== | ||
| Zeile 87: | Zeile 85: | ||
| https:// | https:// | ||
| + | == Anatomy of an Option 121 Packet == | ||
| + | |||
| + | Option 121 data is sent as a string of hexadecimal bytes. It format follows a strict pattern for each route: | ||
| + | |||
| + | - **Width (1 byte)**: The subnet mask in CIDR notation (e.g., 24 for a 255.255.255.0 mask). | ||
| + | - **Destination IP (variable length)**: The target network. \\ Trick: It only includes the bytes required by the subnet mask. If it's a /24, it sends 3 bytes. If it's a /8, it only sends 1 byte! | ||
| + | - **Router IP (4 bytes)**: The gateway address that knows how to get to that destination. | ||
| + | - Cisco supports up to 10 routes, they are just concatenated together | ||
| + | |||
| + | **Example: ** | ||
| + | You want to tell a client: "To get to network 10.0.0.0/8, use the gateway 192.168.1.254." | ||
| + | The hex payload would look like this: | ||
| + | 08 0A C0 A8 01 FE | ||
| + | > 08: The subnet mask (/8). | ||
| + | > 0A: The destination network (10 in hex). Because it's a /8, it only needs one byte. | ||
| + | > C0 A8 01 FE: The gateway IP (192.168.1.254 in hex). | ||
| === DHCP-lease erneuern === | === DHCP-lease erneuern === | ||
| Zeile 106: | Zeile 120: | ||
| http:// | http:// | ||
| - | === NAT === | + | ---- |
| + | |||
| + | ==== NAT ==== | ||
| Overload the interface IP address of the outside interface, allow all hosts behind the inside interface to access the NAT: | Overload the interface IP address of the outside interface, allow all hosts behind the inside interface to access the NAT: | ||
| < | < | ||
| Zeile 124: | Zeile 140: | ||
| </ | </ | ||
| ---- | ---- | ||
| + | ==== NETCONF & RESTCONF ==== | ||
| + | |||
| + | < | ||
| + | Router(config)# | ||
| + | Router(config)# | ||
| + | |||
| + | Router(config)# | ||
| + | Router(config)# | ||
| + | </ | ||
| + | * https:// | ||
| + | |||
| + | |||
| ===== Switch ===== | ===== Switch ===== | ||
ne/cisco.1693666293.txt.gz · Zuletzt geändert: von admin
