Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IPv6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Mon Aug 02, 2004 11:34 pm    Post subject: IPv6 Reply with quote

Does DHCPD, Samba, DNSMasq and Apache2 support IPv6? How do I get DHCP server leasing IP addresses in IPv6 format?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Tue Aug 03, 2004 12:01 am    Post subject: Reply with quote

You might want to take a look at the Gentoo IPv6 Guide.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 04, 2004 6:03 am    Post subject: Reply with quote

The documentation is very limited... I want to run a DHCPv6 server on eth1, however the dhcp6s.conf documentation on that page is little, they dont explain what all those lines mean... The WinXP clients have ipv6 installed, but they dont discover the DHCP server running.
Any ideas how to get it to work?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 04, 2004 9:57 am    Post subject: Reply with quote

I dont think that the dhcpv6 server, despite it is running, responds to the client (WinXP) or do I have to specify something on the client?
By the way, I can ping the server using the ping6 command on the client.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Aug 04, 2004 11:13 am    Post subject: Reply with quote

Doesn't dnsmasq support ipv6 DHCP?

AFAIK, you can't run dhcpv6 and dnsmasq on the same box for DHCP
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 04, 2004 11:20 am    Post subject: Reply with quote

UberLord wrote:
Doesn't dnsmasq support ipv6 DHCP?

AFAIK, you can't run dhcpv6 and dnsmasq on the same box for DHCP

I am not using the dnsmasq's dhcp server... and it doesn't lease ipv6 addresses anyway
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 04, 2004 11:21 am    Post subject: Reply with quote

I just dont get it, the dhcpv6 server is running, but the clients can't see it :cry:
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 04, 2004 1:01 pm    Post subject: Reply with quote

By the way, I also have shorewall, do I need to change something? What I want to accomplish is being connected to external network through eth0 (that still will use IPv4), and the internal network will have IPv6.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Wed Aug 04, 2004 5:08 pm    Post subject: Reply with quote

I've never tried DHCPv6 because radvd seems to be the proper way of doing things. As I understand ipv6, most implementations search out routers when the interface comes up, whereas DHCPv6 requires another program.

Anyway, if it's just for your LAN, give your router the address fec0::1 (like 192.168.x.x or 10.x.x.x in ipv4) and configure radvd to distribute fec0::/64 addresses.

Don't worry about shorewall. Linux filters ipv6 seperately in ip6tables.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Aug 04, 2004 10:35 pm    Post subject: Reply with quote

How will the XP boxes get it's IP adddress though? Are u suggesting they will find the router running radvd and get its ip address? By the way, I also run a dns server, can radvd distribute dns servers ip address to the clients?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Wed Aug 04, 2004 11:25 pm    Post subject: Reply with quote

petrjanda wrote:
How will the XP boxes get it's IP adddress though? Are u suggesting they will find the router running radvd and get its ip address? By the way, I also run a dns server, can radvd distribute dns servers ip address to the clients?

Microsoft claims to support this*, but I've never tried it. I'm not sure how you'd do DNS. I would help more, but my cousin needs help with his 13', 1.5 ton CW trebuchet.

* "The IPv6 protocol for Windows XP and the Windows Server 2003 family supports stateless address autoconfiguration, with which addresses, routes, and other configuration parameters are automatically configured on the basis of the receipt of Router Advertisement messages." from http://www.microsoft.com/technet/community/columns/cableguy/cg0902.mspx
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Thu Aug 05, 2004 6:21 am    Post subject: Reply with quote

Well I finally got it working, using radvd. Now theres another problem.. Even though I can ping the server from the client, I can't ping the client from the router.
ip -6 neigh show doesn't produce anything either.
Also the Default Gateway on the workstation appears to be the link local ip address(fe80..), not the site local address (fec0::1). Is this ok?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Thu Aug 05, 2004 6:14 pm    Post subject: Reply with quote

I have default routes with gateways ::1 and fe80::290:27ff:fe0e:84b2%fxp0 (OpenBSD, my Gentoo desktop is temporarily dead). The second is the link local address of my router's LAN NIC. I assume that's the way it's supposed to work.

It's strange that you can't ping the client from the router. Are you trying to ping the site local or link local address? I've never been able to ping another computer's link local address in Linux or OpenBSD, so don't expect that to work. With more details I might be able to help.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Thu Aug 05, 2004 11:48 pm    Post subject: Reply with quote

Well, this is my radvd.conf:
Code:

interface eth1
{
        AdvSendAdvert on;
        AdvLinkMTU 1280;
        MaxRtrAdvInterval 300;
        prefix fec0::/64
        {
                AdvOnLink on;
                AdvAutonomous on;
        };
};

Routes through eth1 are these:
Code:

root@a216server /etc/radvd # ip -6 route show dev eth1
fe80::/64  metric 256  mtu 1500 advmss 1440
fec0::/64  metric 256  mtu 1500 advmss 1440
ff00::/8  metric 256  mtu 1500 advmss 1440

Just a note that I didnt add or change anything in that.

This is output of ifconfigh eth1
Code:

root@a216server /etc/radvd # ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:0D:61:3A:51:2B
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fec0::1/64 Scope:Site
          inet6 addr: fe80::20d:61ff:fe3a:512b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:799465 errors:0 dropped:0 overruns:0 frame:0
          TX packets:838077 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:186271336 (177.6 Mb)  TX bytes:628255437 (599.1 Mb)
          Interrupt:11 Base address:0xd000


These are the things that appear on the WXP machine when I run ipconfig:
Code:

Connection-specific DNS Suffix:
IP Address:  0.0.0.0
Subnet Mask: 0.0.0.0
IP Address: fec0::20c:76ff:fec1:ee00%1
IP Address: fe80::20c:76ff:fec1:ee00%5
Default Gateway: fe80::20d:61ff:fe3a:512b%5

Tunnel adapter Toredo Tunneling Pseudo-Interface:
Connection-specific DNS suffix:
IP Address:  fe80:5445:5245:444f%4
Default Gateway:

When I turn on DHCP server, then those 0.0.0.0 are given an address.
Sometimes they are substitute with some auto-configurition IP addres starting with 169 and subnet mask 255.255.0.0
I can ping the server "fec0::1", but when I try to ping the client from the server, I use the assigned site local address.

Edit:
Code:

fe80::/64 dev eth1  metric 256  mtu 1500 advmss 1440
fec0::/64 dev eth1  metric 256  mtu 1500 advmss 1440
ff00::/8 dev eth0  metric 256  mtu 1500 advmss 1440
ff00::/8 dev eth1  metric 256  mtu 1500 advmss 1440
unreachable default dev lo  proto none  metric -1  error -101

_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Fri Aug 06, 2004 3:50 am    Post subject: Reply with quote

Everything looks right.

Does XP firewall or for some other reason not answer ping6s? Is ping the only thing not working? I can't imagine what XP would serve over ipv6 that you'd want in Linux.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Fri Aug 06, 2004 4:49 am    Post subject: Reply with quote

Those WXP machines don't have firewall turned on at all. When I ping the client using command ping6 -c3 fec0::20c:76ff:fec1:ee00%1, it says destination unreacheble.
Theres more issues which I need to resolve, such as how to make dnsmasq working so when I resolve http://ip6/ it will return the servers homepage(I run apache2), so far when I ping6 ip6 on the workstation, it says "IPv6 address invalid" or something along the lines (I am not there now..)
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Fri Aug 06, 2004 3:20 pm    Post subject: Reply with quote

Does it work without the "%1"?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum