Ubuntu Networking :: IPv6 Addresses Cannot Be Assigned
Sep 18, 2010
I'm trying to assign like 80 IPv6 addresses on eth0 for virtual webhosting, but after 55 addresses I get the following error:# ip addr add 2a01:9f8:a171:1651::4b:a8af dev eth0 RTNETLINK answers: File exists.What's the problem? I don't understand that error message at all. Is the number of IPv6 addresses per device somehow limited?Ubuntu 10.4.1 server, 64 bit.
Do any one knows how to ping global inet6 addresses assigned between two systems. I assigned inet6 address through "ip addr add 2001::4 dev eth0" and similarly 2001::5 in another machine and tried to ping 2001::5 from 2001::4, but it is showing,
sait87@static-host:~$ ping6 2001::5 connect: Network is unreachable
I am able to retrieve IPv4 addresses with ioctl. But it is not returning IPv6 addresses. My requirement is to get both IPv4 and IPv6 addresses. I can not use getifaddrs() since it has to be common code between linux, solaris and aix. Solaris and AIX are not having getifaddrs(). Following code is returning only IPv4 addresses.
Does anyone know if there is any way to configure 50K "virtual" IPv6 addresses on loopback device in Linux? The aim is not to add all 50K IPv6 addresses one by one on the loopback/ETH device which will probably mess up the ip table on the system. In IPv4, I am able to achieve that by specifying the IP address subnet on loopback device (e.g: "ip addr add 10.1.0.0/16 dev lo"). The same command does not seem to work the same way for IPv6. It only adds a single IPv6 address on loopback device and it automatically adds an "unreachable route" entry on the ipv6 route table for that IPv6 network prefix.
The reason I need this is because I am working on an application which tries to simulate 50K IPv6 addresses on a single Linux box. The kernel version I am currently using is RHEL 22.214.171.124.
We have connected two systems with ethernet cables and have configured the two systems with ipv6 addresses. The IP of one system is 2001:0db8:0:f101::1 (let's say X::1) (This system runs OS Fedora 10) and the other is 2001:0db8:0:f101::2. (Let's say X::2) (This system runs OpenSuSE 10.3) We are able to ping from both systems to the other. We are able to ssh into the one with IP X::2 from the one with IP X::1, but not vice versa.
We have disabled iptables on both systems by using the following commands: /etc/init.d/iptables save /etc/init.d/iptables stop on the fedora 10 system and # iptables -X # iptables -t nat -F # iptables -t nat -X # iptables -t mangle -F # iptables -t mangle -X # iptables -P INPUT ACCEPT # iptables -P FORWARD ACCEPT # iptables -P OUTPUT ACCEPT on the openSuse system.
The error we get in trying to ssh from the openSuse system to the fedora system is: ssh: connect to host 2001:0db8:0:f101::1 port 22: Connection refused
We're trying to write server and client code to send data from one system to the other using SOCK_DGRAM. The code works fine when we run both the client and server on the same system. However, we are not able to send data from one system to another when we use the IPv6 addresses to run the client and server programs.
The error we get is: sendto(): Operation not permitted
The codes we are using for the server and client programs can be found here in beej's guide here : [URL]. We've only substituted the appropriate addresses in the right places... We've disabled the iptables...
I am trying to use link scope IPv6 addresses to permit two machines to connect using IPv6, but I cannot figure out how to do it without specifying the interface to use on every connection. Here is an example ping:
[root@ppatel-brn1 ~]# ping6 -c 3 fe80::204:75ff:feb6:2994 connect: Invalid argument [root@ppatel-brn1 ~]# ping6 -c 3 -I eth0 fe80::204:75ff:feb6:2994 PING fe80::204:75ff:feb6:2994(fe80::204:75ff:feb6:2994) from fe80::214:22ff:febd:7c1f eth0: 56 data bytes 64 bytes from fe80::204:75ff:feb6:2994: icmp_seq=0 ttl=64 time=0.836 ms 64 bytes from fe80::204:75ff:feb6:2994: icmp_seq=1 ttl=64 time=0.286 ms 64 bytes from fe80::204:75ff:feb6:2994: icmp_seq=2 ttl=64 time=0.280 ms
I am trying to configure my IPv6 network. My computers are behind a Fedora gateway IPv6-configured, which is working great. But for computers inside my network, it seems I am getting only internal addresses from DHCP. Here is my ifconfig for an internal computer:
How do I assign IPv4 and IPv6 static addresses permanently in OpenSUSE 11.2? Currently I am only able to assign either IPv4 or IPv6 static address not both. I cannot find even the interfaces file(/etc/sysconfig/network/interfaces).
I used to play with gw6c ( a client for tunnel broker ) It works well with fedora9 , fedora 10, but not with leonidas. my rpm is gw6c-6.0-0.4.beta4.fc9.i386.rpm ( a little old!) when I tried to install i have got this: libcrypto.so.7 est ncessaire pou w6c-6.0-0.4.beta4.fc9.i386 I try to make a soft link to libcrypto.so.0.9.8k, but nothing; The question :-Is there a solution for that pb - did you know a better client for non native ipv6 connectivity?
I have been struggling to get FC15 to act as an IPv6 router for a while now, am sure I am missing something trivial.. The idea is that I have a ppp / adsl connection (this works fine), use the wireless card on my pc with hostapd and dhcpd to provide connections to other pcs (works fine), and radvd to delegate ipv6 addresses.
The issue seem to be that as soon as I turn on ipv6 forwarding (net.ipv6.conf.all.forwarding =1), the ppp connection no longer gets an IPv6 address. This means the router cannot ping any ipv6 address outside my network.
If I disable ipv6 routing, my router gets an IPv6 address on its ppp connection, and can ping things such as ipv6.google.com just fine, however (of course) no packets are forwarded from my network and radvd complains that forwarding is disabled.
I'm running Ubuntu Server 10.10 on a 64 bit laptop (also have GNOME installed just for convenience), and have a website up using apache2. I am wondering if it is possible to configure both eth0 and wlan0 to the same local static IP address? I would like to walk around my house and do stuff when I want and still have the website accessible, but also be able to jack my laptop back into the router when I am away, just for peace of mind.
Is this possible? If it is, do I need to do some configuring in apache2 to tell it to use another device? Is this even a smart way to get what I want done?
I have been issued 16 IP's my my ISP. Obviously my subnet is 240. is there a way I can take one or any of those IP's and somehow make them into their own network on my end? Really what I am wanting to do is take my 2 DNS servers that are really on the same network far as my assigned subnet and IP's, but take at least one of those IP's and sub-network? it out to the other DNS so it appears to be on another net work. like just simply assign it 192.168.219 255.255.255.255 or something like that.
I have Ubuntu command line only installed on my HTPC (it is XBMC Live installation). Kernel is 2.6.31-16-generic. My wi-fi card is AW-NE770 from AzureWave (mini-pci on Zotac Atom motherboard). I have successfully configured wireless connection to my router. Unfortunately, after short period of time connection drops. When I restart /etc/network/interfaces all goes back to normal. When connection is dropped, iwconfig shows that access point is not assigned. I have already tried installing backport drivers, removing security on the network (WEP and WPA), assigning static IP or using DHCP. Nothing works. I know it is not the router or my internet because I can be at the same time on my laptop and that works fine.
I am new to UBUNTU. I installed the latest one alongside windows 7. I am having problem with the internet connectivity. I configured the static ip settings right I guess. Edited the Auto eth1 and assigned ipv4 settings manually and entered everything correctly.
Address 192.168.xx.xx Netmask 255.255.255.0 Gateway 192.168.xx.xxx DNS Server xxx.xxx.xx.x, xxx.xxx.xx.x
Do I have to put MAC Address as well? Which is addressed as 'Network address' in Windows where I put this MAC. I have on board Realtek RTL8101E Family PCI-E Fast Ethernet NIC (NDIS 6.20) Network adapter. Do I have to install the driver?
On Fedora 13 is there anywhere else on the system that I have to change to get Apache to Listen to an assigned port, something other than 80. Suppose for instance I wanted Apache to Listen on port 94. I told by the site that their router is forwarding apache to port 94. That doesn't mean I change the Listen in httpd.conf. correct. Apache is still expecting connection on port 80 but in this case 80 then gets forwarded in the router to 94. This is my understanding.
I have Ubuntu 10.10 installed on my laptop. My ISP natively supports ipv6, but since last weekend, I do not get an ipv6 ip. When I use a live cd however, I do get an ipv6 ip. For as far as I can see, all settings (/etc/network/interface and the settings in network manager) are exactly the same.
Output of ifconfig:
Code: eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.XXX Mask:XXX.XXX.XXX.XXX inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
EDIT: is there a way to let the netwerk be automatically configured as happens during installation? It would be nice to start with a clean and new set of network config files as there were just after I installed Ubuntu on my system, without a full reinstall of my system.
I have a networking problem with my computer. Under Windows, the computer can get both v4 and v6 address via DHCP. However, the same computer can only get v4 address under Ubuntu. Does anybody know how to solve this problem?
I have tried to disable the ipv6 support in ubuntu 9.04 32bit but the /etc/modprobe.d/aliases does not exist so I can't disable the suport as sugested for the previews versions. I need to disable it becouse it is pounding a total maihem in my vamware machines.
some of you might have experienced the network speed problem that occurs when ipv6 is enabled. So have I. I know about the common workaround of disabling ipv6, but recently I tested the new ubuntu live system, and the problem was gone with ipv6 being enabled.
Now my question is: Do you know what ubuntu is making different? I haven't found an explanation. Is there a better workaround than blacklisting ipv6?
I have a small wireless network running IPv6 connected though a 802.15.4 usb stick, and a network connection through eth1. I can access the nodes on the wireless network from my computer, but not from any other on the wired LAN. Also the nodes on the wireless cannot see even the address of eth1. I'm guessing i have to forward all packets from the wireless to eth1 in some way, but am unable to find an guides for this with IPv6.
I've just started using ufw with the frontend gufw. I've configured it like this:
Accept everything in and out as default Block incoming FTP connections from a certain IPv4 address (brute-force for days)
Today I noticed that IPv6 connections don't work anymore. The connection to two hosts (IPv6 only) times out. As soon as I disable ufw entirely, the connections work again. The host I want to connect to is:
2001:638:a00:f00b:200:1cff:fedb:d38f port 7337 2001:638:a00:f00b:a00:6ff:fe07:cda2 port 7337
These are small telnet servers that print out a number (temperature nearby) and close again. I'm logging those values in a database.
Is ufw not IPv6-capable and blocks things it's not supposed to?
Update: ufw seems complete garbage to me... You can't even configure it while it's disabled! How am I supposed to safely activate it when the first thing it does is blocking all communications? I can't even configure it to let me in before I configure it to keep me out... And then, even if I explicitly let it pass port 7337, it still blocks it through IPv6.
I've been using IPv6 on my local network and through a Hurricane Electric IPv6 tunnel. I've heard that one of the built in features of IPv6 is encryption, both scrambling the data and authenticating where the traffic came from. I've done some searching and heard of SWAN and Racoon, but some of the stuff I found is old and I would like to know what the easiest/best way to set up IPSEC for IPv6 is.