IPv6 Cisco Router: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 13: Zeile 13:
 
*configure terminal
 
*configure terminal
 
*hostname cisco-router
 
*hostname cisco-router
 +
*no logging console
 
*end
 
*end
 +
 
=Forwarding von IPv6 Traffic=
 
=Forwarding von IPv6 Traffic=
 
*configure terminal
 
*configure terminal
Zeile 34: Zeile 36:
 
*configure terminal
 
*configure terminal
 
*interface GigabitEthernet2
 
*interface GigabitEthernet2
**description lan
+
**description ciscolan
 
**ip address 192.168.45.2 255.255.255.0
 
**ip address 192.168.45.2 255.255.255.0
 
**negotiation auto
 
**negotiation auto
Zeile 62: Zeile 64:
 
  !!!!!
 
  !!!!!
 
  Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/7 ms
 
  Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/7 ms
 +
=Neighbor Cache=
 +
;Anzeigen
 +
*show ipv6 neighbors
 +
;Löschen alle Neighbor Caches aller Interface
 +
*clear ipv6 neighbors
 +
;Löschen alle Neighbor Caches eines Interface
 +
*clear ipv6 neighbors GigabitEthernet 1 
 +
;Löschen alle Neighbor Caches eines Interface
 +
*clear ipv6 neighbors GigabitEthernet 1  2a02:24d8:71:2028::1
 +
 
=IPv6 Nameserver=
 
=IPv6 Nameserver=
 
*configure terminal
 
*configure terminal
*ip name-server  2A02:24D8:71:3030::1
+
*ip name-server  2001:4860:4860::8888
 
*end
 
*end
  

Aktuelle Version vom 29. April 2025, 07:42 Uhr

Weiter geht es

  • Wir bauen einen Cisco Router ein
  • Dieser kommt an unser Transit Netz
  • Wir Nutzen hier GigabitEthernet1
  • IP 2a02:24d8:71:2444::2
  • Wir stellen die Default Route auf 2a02:24d8:71:2444::1
  • Wir testen

Schaubild

Einrichtung

Hostname

  • configure terminal
  • hostname cisco-router
  • no logging console
  • end

Forwarding von IPv6 Traffic

  • configure terminal
  • ipv6 unicast-routing
  • ip routing
  • end

Zurordnung zum Interface

GigabitEthernet1

  • configure terminal
  • interface GigabitEthernet1
    • description to-opnsense
    • ip address 192.168.44.2 255.255.255.0
    • negotiation auto
    • ipv6 address 2A02:24D8:71:3034::2/64
  • exit
  • end

GigabitEthernet2

  • configure terminal
  • interface GigabitEthernet2
    • description ciscolan
    • ip address 192.168.45.2 255.255.255.0
    • negotiation auto
    • ipv6 address 2A02:24D8:71:3035::2/64
    • ipv6 nd prefix default no-advertise
    • ipv6 nd ra suppress all
  • exit
  • end

Test

  • ping ipv6 2A02:24D8:71:3034::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2A02:24D8:71:3034::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

Default Route

  • configure terminal
  • ipv6 route ::/0 2a02:24d8:71:3030::1
  • ip route 0.0.0.0 0.0.0.0 192.168.44.1
  • end

Testen der Defaultroute

  • ping ipv6 2001:4860:4860::8888
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:4860:4860::8888, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/7 ms

Neighbor Cache

Anzeigen
  • show ipv6 neighbors
Löschen alle Neighbor Caches aller Interface
  • clear ipv6 neighbors
Löschen alle Neighbor Caches eines Interface
  • clear ipv6 neighbors GigabitEthernet 1
Löschen alle Neighbor Caches eines Interface
  • clear ipv6 neighbors GigabitEthernet 1 2a02:24d8:71:2028::1

IPv6 Nameserver

  • configure terminal
  • ip name-server 2001:4860:4860::8888
  • end

Nameserver Test

  • ping ipv6 google.de
Translating "google.de"...domain server (2A01:4F8:C17:2CC5::1) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2A00:1450:4001:827::2003, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/6 ms