Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




2842 posts

Uber Geek
+1 received by user: 73


Topic # 148537 22-Jun-2014 18:53
Send private message

I have OpenWRT setup on my router, all appears to be working fine. 
IPv6 is working for my clients that are connected and I can ping IPv6 internet addresses from the router.


Trouble is, I'm trying to get the IPv6 WAN address of my router, as it hosts some services for me (openVPN etc.).

Problem is I can't find it in my router interface and when I run ifconfig from SSH, it comes back with a FE80 address, which can't be right. As an alternative, I tried "wget whatsmyip.net -O /file.html" and pulled the webpage, but the file contained my IPv4 address and only a partial IPv6 address?

Kind of at a loss as to how to get to it?!

EDIT: So pinging the not fully formed IPv6 I pulled from whatsmyip.net resolved back to a IPv4 address... very confused now...





Create new topic
157 posts

Master Geek
+1 received by user: 18


  Reply # 1072170 22-Jun-2014 19:17
Send private message

fe80 is a link local address, sort of like the 192.0.0.0 LAN addressing in IPV4

http://en.wikipedia.org/wiki/Link-local_address



2842 posts

Uber Geek
+1 received by user: 73


  Reply # 1072171 22-Jun-2014 19:19
Send private message

ObidiahSlope: fe80 is a link local address, sort of like the 192.0.0.0 LAN addressing in IPV4

http://en.wikipedia.org/wiki/Link-local_address


Yeah, I know. ifconfig identifies it has "scope: link", which makes sense. I appear to be missing the "Global" address.





 
 
 
 


438 posts

Ultimate Geek
+1 received by user: 123

Subscriber

  Reply # 1072193 22-Jun-2014 19:48
Send private message

"netstat -n" while you have an outbound TCP connection open maybe? Weird ifconfig isn't showing it though.

830 posts

Ultimate Geek
+1 received by user: 259

Trusted

  Reply # 1072195 22-Jun-2014 19:50
Send private message

Aaroona: I have OpenWRT setup on my router, all appears to be working fine. 
IPv6 is working for my clients that are connected and I can ping IPv6 internet addresses from the router.


Trouble is, I'm trying to get the IPv6 WAN address of my router, as it hosts some services for me (openVPN etc.).

Problem is I can't find it in my router interface and when I run ifconfig from SSH, it comes back with a FE80 address, which can't be right. As an alternative, I tried "wget whatsmyip.net -O /file.html" and pulled the webpage, but the file contained my IPv4 address and only a partial IPv6 address?

Kind of at a loss as to how to get to it?!

EDIT: So pinging the not fully formed IPv6 I pulled from whatsmyip.net resolved back to a IPv4 address... very confused now...


Are you sure that your ISP is actually assigning you an IP6 address?



2842 posts

Uber Geek
+1 received by user: 73


  Reply # 1072196 22-Jun-2014 19:52
Send private message

Glassboy: 
Are you sure that your ISP is actually assigning you an IP6 address?


Pretty sure... straight from Snap! website... "All snap customers are assigned a dynamic /48 IPv6 address"







830 posts

Ultimate Geek
+1 received by user: 259

Trusted

  Reply # 1072201 22-Jun-2014 19:59
Send private message

Aaroona:
Glassboy: 
Are you sure that your ISP is actually assigning you an IP6 address?


Pretty sure... straight from Snap! website... "All snap customers are assigned a dynamic /48 IPv6 address"



OpenWRT looks like it supports SNMP.  Configure it and then find a SNMP tool for your OS and query the interface.

I fix stuff!
1566 posts

Uber Geek
+1 received by user: 249

Trusted
Vocus
Subscriber

  Reply # 1072219 22-Jun-2014 20:20
Send private message

You will probably find that SNAP are just doing a prefix delegation. OpenWRT should take the first /64 and assign it to your LAN (RAs or DHCP into your LAN). It will use your link-local address as gateways.

OpenWRT might not actually assign itself an IP address from the PD, only hosts sitting behind the router.






2842 posts

Uber Geek
+1 received by user: 73


  Reply # 1072223 22-Jun-2014 20:28
Send private message

Glassboy:
Aaroona:
Glassboy: 
Are you sure that your ISP is actually assigning you an IP6 address?


Pretty sure... straight from Snap! website... "All snap customers are assigned a dynamic /48 IPv6 address"



OpenWRT looks like it supports SNMP.  Configure it and then find a SNMP tool for your OS and query the interface.


Only appears to be returning IPv4 related information, unless I'm doing it wrong? Nothing IPv6 related at all.



Sounddude: You will probably find that SNAP are just doing a prefix delegation. OpenWRT should take the first /64 and assign it to your LAN (RAs or DHCP into your LAN). It will use your link-local address as gateways.

OpenWRT might not actually assign itself an IP address from the PD, only hosts sitting behind the router.



You might be right here... IPv6 appears to be attached to my LAN bridge, but not to the WAN/PPPoe-wan interface. 
So is it then doing 6-4 from the router itself? because I can ping Ipv6 sites from the router, but if I load a page from the router, it comes back with an "IPv6 looking" IPv4 address?







I fix stuff!
1566 posts

Uber Geek
+1 received by user: 249

Trusted
Vocus
Subscriber

  Reply # 1072509 23-Jun-2014 11:47
Send private message

Aaroona: 

You might be right here... IPv6 appears to be attached to my LAN bridge, but not to the WAN/PPPoe-wan interface. 
So is it then doing 6-4 from the router itself? because I can ping Ipv6 sites from the router, but if I load a page from the router, it comes back with an "IPv6 looking" IPv4 address?



What do you mean "browse" from the router?

Do you mean if you are VPN'ing into the router, than when you browse it only uses IPV4?

IPV6 doesn't allow NAT. So in theory you should be doing DHCPv6 or Router-Advertisement over your VPN to assign a IPV6 to your VPN client.



Also IPV6 depends on if the client software itself supports IPV6. Ping probably uses an IP from your LAN, which is why it works.





2842 posts

Uber Geek
+1 received by user: 73


  Reply # 1072843 23-Jun-2014 18:39
Send private message

Sounddude:
Aaroona: 

You might be right here... IPv6 appears to be attached to my LAN bridge, but not to the WAN/PPPoe-wan interface. 
So is it then doing 6-4 from the router itself? because I can ping Ipv6 sites from the router, but if I load a page from the router, it comes back with an "IPv6 looking" IPv4 address?



What do you mean "browse" from the router?

Do you mean if you are VPN'ing into the router, than when you browse it only uses IPV4?

IPV6 doesn't allow NAT. So in theory you should be doing DHCPv6 or Router-Advertisement over your VPN to assign a IPV6 to your VPN client.



Also IPV6 depends on if the client software itself supports IPV6. Ping probably uses an IP from your LAN, which is why it works.




What I mean is when I use wget via SSH (connected to the router) to pull a page that lists your IP, thats when it lists the 'ipv6 looking' IPv4 address.

Nothing to do with VPN :) 


All other IPv6 connectivity seems fine with Openwrt and clients, just the wan IPv6 on the router isn't coming up.





1292 posts

Uber Geek
+1 received by user: 319


  Reply # 1072917 23-Jun-2014 20:57
Send private message

I use Geekzone to see if IPv6 is working on my router ... the Geekzone logo on the home page has an IPv6 above it when it works :-)

Does OpenWRT have the "ip" command ?  On Linux you can use "/sbin/ip -6 addr show dev <name of network device>"





2842 posts

Uber Geek
+1 received by user: 73


  Reply # 1072938 23-Jun-2014 21:23
Send private message

Mark: I use Geekzone to see if IPv6 is working on my router ... the Geekzone logo on the home page has an IPv6 above it when it works :-)

Does OpenWRT have the "ip" command ?  On Linux you can use "/sbin/ip -6 addr show dev <name of network device>"




No external address shows up there for the interface, although, one global address show up for br-lan. So appears what was said earlier may be true; it is pulling the addresses through, but applying them to the LAN and not assigning itself one. Strange.

Worth noting, I loaded up a different firmware before, and did the wget command I used earlier, it appeared to have pulled a proper IPv6 address of 2406:e000:e169::1 - very short, I thought, but appeared valid when it was connected.

Moved back to the other firmware I have (has significant Wifi benefits), and back to the old 'ipv6 looking' ipv4 address, i.e. ::ffff:6f45:c4xx (x's used to hide my ip)


will load up the other firmware again tomorrow and try the command you suggested.





Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

UAV Traffic Management Trial launching today in New Zealand
Posted 12-Dec-2017 16:06


UFB connections pass 460,000
Posted 11-Dec-2017 11:26


The Warehouse Group to adopt IBM Cloud to support digital transformation
Posted 11-Dec-2017 11:22


Dimension Data peeks into digital business 2018
Posted 11-Dec-2017 10:55


2018 Cyber Security Predictions
Posted 7-Dec-2017 14:55


Global Govtech Accelerator to drive public sector innovation in Wellington
Posted 7-Dec-2017 11:21


Stuff Pix media strategy a new direction
Posted 7-Dec-2017 09:37


Digital transformation is dead
Posted 7-Dec-2017 09:31


Fake news and cyber security
Posted 7-Dec-2017 09:27


Dimension Data New Zealand strengthens cybersecurity practice
Posted 5-Dec-2017 20:27


Epson NZ launches new Expression Premium Photo range
Posted 5-Dec-2017 20:26


Eventbrite and Twickets launch integration partnership in Australia and New Zealand
Posted 5-Dec-2017 20:23


New Fujifilm macro lens lands in New Zealand
Posted 5-Dec-2017 20:16


Cyber security not being taken seriously enough
Posted 5-Dec-2017 20:13


Sony commences Android 8.0 Oreo rollout in New Zealand
Posted 5-Dec-2017 20:08



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.