Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[Solved] IPv6 router with static subnets from /48 to /56

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
svirusxxx
n00b
n00b
Posts: 10
Joined: Fri Dec 28, 2018 7:11 am

[Solved] IPv6 router with static subnets from /48 to /56

  • Quote

Post by svirusxxx » Mon May 29, 2023 8:34 am

Hi
I just recive from my LIR /48 IPv6
My main router is Edgerouter where I have setup connection addresses /127 on WAN, and my /48 on switch0 where most my servers is connected.
Now I try on one of my gentoo servers setup as router more deep in my network like in this diagram:

Code: Select all

ISP <===> (eth4) Edgerouter (switch0) <====>  (eth0) server1 (eth1) <====> (eth2) client1
                                         ==>  (eth0) server2
Now I have configured
Edgerouter switch0 have 2a01:1150:1::1/48
server1 eth0 2a01:1150:1::2/48 with gateway to 2a01:1150:1::1
server1 eth1 2a01:1150:1:100:1/56
client1 eth2 2a01:1150:1:100:2/56 with gateway 2a01:1150:1:100:1
server2 eth0 2a01:1150:1::2/48 with gateway to 2a01:1150:1::1

On server1 and server2 I have full connection worldwide to IPv6
On client1 I can ping6 only to server1

also from server2 I can't ping6 2a01:1150:1:100:1


Also on server1 I set

Code: Select all

net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.all.accept_ra = 2
net.ipv6.conf.all.accept_redirects = 1
net.ipv6.conf.all.accept_source_route = 1
What I miss or what I'am doing wrong ?


Thanks in advanced[/code]
Last edited by svirusxxx on Tue May 30, 2023 6:57 am, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon May 29, 2023 11:33 am

svirusxxx,

It rooks like you have a routing problem.

Please share the output of

Code: Select all

ip -6 route show
and

Code: Select all

ip -6 addr show
for all the systems on the route you expect the packets to traverse.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
svirusxxx
n00b
n00b
Posts: 10
Joined: Fri Dec 28, 2018 7:11 am

  • Quote

Post by svirusxxx » Mon May 29, 2023 12:50 pm

server1:
# ip -6 route show

Code: Select all

::1 dev lo proto kernel metric 256 pref medium
2a01:1150:1:100::/56 dev eth1 proto kernel metric 256 pref medium
2a01:1150:1::/48 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth1 proto kernel metric 256 pref medium
default via 2a01:1150:1::1 dev eth0 metric 1024 pref medium
# ip -6 addr show

Code: Select all

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 2a01:1150:1::2/48 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::887:80ff:fef5:855f/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 2a01:1150:1:100::1/56 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::643c:10ff:fe9a:ae07/64 scope link 
       valid_lft forever preferred_lft forever
client1:
ip -6 route show

Code: Select all

::1 dev lo proto kernel metric 256 pref medium
2a01:1150:1:100::/56 dev eth2 proto kernel metric 256 pref medium
fe80::/64 dev eth1 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth2 proto kernel metric 256 pref medium
default via 2a01:1150:1:100::1 dev eth2 metric 1024 pref medium
ip -6 addr show

Code: Select all

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 fe80::64a4:28ff:fef1:d9d6/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 fe80::f01d:83ff:fe91:f11d/64 scope link 
       valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 2a01:1150:1:100::2/56 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::9007:afff:fec7:c800/64 scope link 
       valid_lft forever preferred_lft forever

server2:
ip -6 r s

Code: Select all

::1 dev lo proto kernel metric 256 pref medium
2a01:1150:1::/48 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eno1 proto kernel metric 256 pref medium
ip -6 a s

Code: Select all

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 fe80::7a2b:cbff:fe4e:a275/64 scope link 
       valid_lft forever preferred_lft forever
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 2a01:1150:1:33::1/48 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::7a2b:cbff:fe4e:a276/64 scope link 
       valid_lft forever preferred_lft forever

I can't ping from server2 2a01:1150:1:100::1 and I can't ping6 2a01:1150:1:100::2 (nothing on tcpdump on client1)

When I try ping6 server2 from client1 I see this on tcpdump (on server2):

Code: Select all

14:48:47.973872 IP6 fe80::7a2b:cbff:fe4e:a276 > fe80::d221:f9ff:febe:bde3: ICMP6, neighbor solicitation, who has fe80::d221:f9ff:febe:bde3, length 32
14:48:47.974238 IP6 fe80::d221:f9ff:febe:bde3 > fe80::7a2b:cbff:fe4e:a276: ICMP6, neighbor advertisement, tgt is fe80::d221:f9ff:febe:bde3, length 24
14:48:50.113708 IP6 2a01:1150:1:100::2 > 2a01:1150:1:33::1: ICMP6, echo request, seq 1, length 64
14:48:50.113765 IP6 2a01:1150:1:33::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2a01:1150:1:100::2, length 32
14:48:51.131179 IP6 2a01:1150:1:100::2 > 2a01:1150:1:33::1: ICMP6, echo request, seq 2, length 64
14:48:51.145859 IP6 2a01:1150:1:33::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2a01:1150:1:100::2, length 32
14:48:52.155323 IP6 2a01:1150:1:100::2 > 2a01:1150:1:33::1: ICMP6, echo request, seq 3, length 64
14:48:52.165896 IP6 2a01:1150:1:33::1 > ff02::1:ff00:2: ICMP6, neighbor solicitation, who has 2a01:1150:1:100::2, length 32
14:48:52.986171 IP6 fe80::d221:f9ff:febe:bde3 > fe80::7a2b:cbff:fe4e:a276: ICMP6, neighbor solicitation, who has fe80::7a2b:cbff:fe4e:a276, length 32
14:48:52.986219 IP6 fe80::7a2b:cbff:fe4e:a276 > fe80::d221:f9ff:febe:bde3: ICMP6, neighbor advertisement, tgt is fe80::7a2b:cbff:fe4e:a276, length 24
14:48:53.179229 IP6 2a01:1150:1:100::2 > 2a01:1150:1:33::1: ICMP6, echo request, seq 4, length 64
Top
svirusxxx
n00b
n00b
Posts: 10
Joined: Fri Dec 28, 2018 7:11 am

  • Quote

Post by svirusxxx » Mon May 29, 2023 2:35 pm

ok I found bug

I needed add static routing to my Edgerouter on console:

Code: Select all

set protocols static route6 2a01:1150:1:100::/56 next-hop 2a01:1150:1::2
commit; save;
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic