Nun versteh ich garnichts mehr... Ich setze doch die Route in der interfaces, nur wird keins der commands genommen beim booten...
Wie sieht deine aktuelle Config denn aus?
Nun versteh ich garnichts mehr... Ich setze doch die Route in der interfaces, nur wird keins der commands genommen beim booten...
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet6 static
address 2a02:345:f055:900::1
netmask 64
gateway 2a02:345:f055::1
# IPv6 route zum Gateway
up ip -f inet6 route add 2a02:345:f055::1 dev eth0
# IPv6 Default route zum Gateway
up ip -f inet6 route add default via 2a02:345:f055::1
cat > /mnt/etc/rc.conf << "EOF"
...
##### IPv4
static_routes="gateway4 default4"
route_gateway4="-host -inet GATEWAY4 -interface IFACE4"
route_default4="default GATEWAY4"
ifconfig_IFACE4="inet IPADDR4 netmask NETMASK4"
##### IPv6
static_ndp_pairs="GATEWAY6 GWMAC6"
ipv6_static_routes="gateway6 default6"
ipv6_route_gateway6="-host -inet6 GATEWAY6 -interface IFACE6"
ipv6_route_default6="default GATEWAY6"
ifconfig_IFACE6_ipv6="inet6 IPADDR6 prefixlen PREFLEN6"
...
"EOF"
# IPv4
route -n get -inet 0.0.0.0 | \
awk '/interface/ {print $2}' | \
xargs -I % sed -e 's/IFACE4/%/g' -i '' /mnt/etc/rc.conf
route -n get -inet 0.0.0.0 | \
awk '/gateway/ {print $2}' | \
xargs -I % sed -e 's/GATEWAY4/%/g' -i '' /mnt/etc/rc.conf
ifconfig `route -n get -inet 0.0.0.0 | awk '/interface/ {print $2}'` inet | \
awk '/inet / {if(substr($2,1,3)!=127) print $2}' | \
head -n 1 | \
xargs -I % sed -e 's/IPADDR4/%/g' -i '' /mnt/etc/rc.conf
ifconfig `route -n get -inet 0.0.0.0 | awk '/interface/ {print $2}'` inet | \
awk '/inet / {if(substr($2,1,3)!=127) print $4}' | \
head -n 1 | \
xargs -I % sed -e 's/NETMASK4/%/g' -i '' /mnt/etc/rc.conf
arp -n `route -n get -inet 0.0.0.0 | awk '/gateway/ {print $2}'` | \
awk '{print $4}' | \
xargs -I % sed -e 's/GWMAC4/%/g' -i '' /mnt/etc/rc.conf
# IPv6
route -n get -inet6 :: | \
awk '/interface/ {print $2}' | \
xargs -I % sed -e 's/IFACE6/%/g' -i '' /mnt/etc/rc.conf
route -n get -inet6 :: | \
awk '/gateway/ {print $2}' | \
xargs -I % sed -e 's/GATEWAY6/%/g' -i '' /mnt/etc/rc.conf
ifconfig `route -n get -inet6 :: | awk '/interface/ {print $2}'` inet6 | \
awk '/inet6 [0-9]/ {print $2}' | \
head -n 1 | \
xargs -I % sed -e 's/IPADDR6/%/g' -i '' /mnt/etc/rc.conf
ifconfig `route -n get -inet6 :: | awk '/interface/ {print $2}'` inet6 | \
awk '/inet6 [0-9]/ {print $4}' | \
head -n 1 | \
xargs -I % sed -e 's/PREFLEN6/%/g' -i '' /mnt/etc/rc.conf
ndp -n `route -n get -inet6 :: | awk '/gateway/ {print $2}' | sed -e 's/\%.*$//'` | \
tail -n 1 | \
awk '{print $2}' | \
xargs -I % sed -e 's/GWMAC6/%/g' -i '' /mnt/etc/rc.conf
Könnte mir das mal jmd, auf meinen interface anpassen, kann ja nicht viel sein...
Hi so hier:
Code:iface eth0 inet6 static address 2a02:345:f055:900::1 netmask 64 gateway 2a02:345:f055::1 # IPv6 route zum Gateway up ip -f inet6 route add 2a02:345:f055::1 dev eth0 # IPv6 Default route zum Gateway up ip -f inet6 route add default via 2a02:345:f055::1
getestet aber auch mit up ip -6 route add 2a02...
iface eth0 inet6 static
address 2a02:345:f055:900::1
netmask 64
# IPv6 route zum Gateway
up ip -6 route add 2a02:345:f055::1 dev eth0
# IPv6 Default route zum Gateway
up ip -6 route add default via 2a02:345:f055::1
Das Nein bezog sich nicht auf diese Frage, sondern Deinen Beitrag davor.Frag mich nur warum man es dann verneint, wenn ich frage ob dann der GW noch notwendig ist.
We use essential cookies to make this site work, and optional cookies to enhance your experience.