Networking :: Referencing Hosts By (special) Hostname For IPv6 Link Local Address
Apr 30, 2010
I can reach other hosts by means of their global addresses by either the IP address or hostname (that has the global address). What I want to (also) do is have a hostname that references the IPv6 link local IP address (an AAAA record in DNS, or just the fe80::<whatever> address in /etc/hosts) and use that host name in commands to access that host. The problem is, an interface ID is needed when making such a reference.
It sure looks like the programs just pass the host name string on to the resolver library, which does not understand the significance of the '%' even though it could find and see that the name preceding the '%' is consistent with that being an IPv6 link local address (e.g. the logic could have been "split at first % and see if preceeding name is found as a link local address and accept that if so, or ignore the split otherwise" ... but it isn't). Is there a different syntax for this ... or was it overlooked in the design of programming around IPv6?I want to be able to address a host by its link local address, while still using a mnemonic instead of having to type the IPv6 address.
View 1 Replies
ADVERTISEMENT
Feb 18, 2010
I added an init script numbered just before bind9 starts, which needs to see the ipv6 link-local address on eth0. Sometimes this address is not configured, yet. In all cases it eventually is configured.
I am unable to find any script that is configuring the ipv6 link-local address (which is in part based on the MAC address). Does anyone know if there is some script or program that is supposed to be doing this, or is it an internal kernel function?
One workaround I am considering is making this init script go into a loop around sleep 1 to keep checking for the ipv6 address. But I'm concerned this might cause some problems. Any suggestions? I don't want to let it move on to start bind9 until the configuration this script does (more ipv6 addresses) is done.
This is on Ubuntu 9.10 server (for which there is not a prefix choice).
View 6 Replies
View Related
Aug 31, 2011
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.
View 1 Replies
View Related
May 2, 2011
I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?
View 2 Replies
View Related
May 24, 2010
I'm trying to ping another Ubuntu computer on my local network. If I try doing,ping <hostname>then I get the messageping: unknown host <hostname>however, if I doping <hostname>.localthen I get a response back. I was wondering how I can change it so that I can ping without having to append .localI've installed winbind and modified my /etc/nsswitch.conf file but this has made no difference.
View 2 Replies
View Related
Jun 23, 2010
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
[Code]...
View 3 Replies
View Related
Jun 30, 2009
I have a problem with my ipv6 connection: although I can't get ipv6 address with DHCP, I can't use ipv6 network. I tried [URL], and the tortoise is static. I want to fix it out , so I use 'ifconfig' to see my network configuration:
eth0 Link encap:Ethernet HWaddr 00:50:8d:ef:dd:06
inet addr:210.77.9.102 Bcast:210.77.11.255 Mask:255.255.252.0
inet6 addr: 2002:d24d:b64:4:250:8dff:feef:dd06/64 Scope:Global
[code]....
Some people told me that the fisrt ipv6 address was wrong and unsuitable for ipv6 connecting. I tried /ect/init.d/networking restart but it didn't work. How can I use the second address as my ipv6 address and fix the problem out ? Now it seems there is not problem with the ip adress but the route. After watching some video, I suddenly could use ipv6. I did 'ifconfig' again and nothing was different. However, the result from the command 'ip -f inet6 route' changed: the last default route was gone and there was only one default route.
View 2 Replies
View Related
Dec 22, 2009
I have a very simple setup
router DIR 100 4 ports
adsl connected to WAN
Linux connected to port 1
Mac connected to a port 2
I am trying to figure why linux hostname is not detected in my LAN. The strange thing is that my macs hostname is automatically detected and put in DHCP CLIENT LIST! I have scrolled the whole manual 10 times.
My Linux (Slackware 13) gets IP address automatically by DHCP server in router. Has anyone had this problem with routers in general?
Output from router DIR 100:
View 2 Replies
View Related
Nov 4, 2010
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?
View 3 Replies
View Related
Jul 28, 2009
I have a host and typing ifconfig I get:
eth0 Link encap:Ethernet HWaddr 00:0E:7F:4F:E4:09
inet addr:130.130.9.9 Bcast:130.130.255.255 Mask:255.255.0.0
inet6 addr: fe80::20e:7fff:fe4f:e409/64 Scope:Link
[code]...
and to do a test i want to disable or delete the ipv6 address, but mainteining the other configured parameters. Looking on the ifcfg config file I have
DEVICE=eth0
BOOTPROTO=static
BROADCAST=130.130.255.255
[code]....
and nothing about IPv6... Then, using ifdown-ipv6 could i remove only the ipv6 address?
View 11 Replies
View Related
Nov 22, 2010
When I do ifconfig than IPv6 address is appearing on an interface. However when I run the system-config-network and select to edit same interface than it shows the normal ip4 192.168.1.x address. Why is it like that? ipv4 at one place and ipv6 at other?
View 3 Replies
View Related
Aug 7, 2010
I'm using NAT on an AP with linux. Is it possible to route an OUTGOING host not over NAT?
I'm using SNAT but could also use MAQUERADING I think. Because both are in POSTROUTING table and this table is the last one I don't think there is a solution or is there any solution?
Background:
I'm using a local VoIp client which I want to have an own ip for routing question in my network but don't want all other local machines as seperate ip's because if done so i.e. without NAT the routing table is very complicated ...
View 1 Replies
View Related
Mar 6, 2011
my local clients connected to the IPv6 internet.
I've already designated a machine to act as the router to the hurricane electric tunnel. I created a he-ipv6 device on it and can ping ipv6.google.com. No problem.
The problem happens when I want clients to use that router. That is, I can't ping ipv6.google.com from other machines on my LAN.
I setup /etc/radvd.conf, which seemed to successfully give out addresses to my clients:
interface eth0
{
AdvSendAdvert on;
prefix MY:HEREFIX::/64
[Code]....
I start the daemon and check that my clients have new ip6 addresses. So far so good. On my router, I do a sysctl -p and see that /proc/sys/net/ipv6/conf/all/forwarding = 1. I haven't touched ip6tables/iptables yet. Both are in a flushed state.
My ipv6 router is actually inside the LAN which gets internet from another machine which has let ipv6 packets through using protocol 41. I figure I don't have to worry about anything else because if my router can ping6 ipv6.google.com, the failure point would be there.
So my clients get ip6 addresses, but can't ping6 the router nor the ipv6.google.com. They do resolve ipv6.google.com however and I checked the traffic on the router over he-ipv6 from ifconfig and RX and TX bytes were changing during the ping.
My router has only one physical device for forwarding, eth0 and the tunnel device he-ipv6. Do I need to add some kind of ip6tables to see a simple ping from my clients?
View 1 Replies
View Related
May 31, 2010
What is the right way to specify hostname(in local linux box, not in DNS server):
myhost1
or
myhost1.mydomain1
View 2 Replies
View Related
May 28, 2010
I have to build a netwrok for small lab and office setup.Setup as belowI have a PC running with Centos 5.4 and has 4 NIC cards. eth0, eth1, eth2 and eth3
View 3 Replies
View Related
May 19, 2010
I have retrieved IPv4 address successfully using
Code:
struct ifreq ifr;
fd = socket(AF_INET, SOCK_DGRAM, 0);
ifr.ifr_addr.sa_family = AF_INET;
ioctl(fd, SIOCGIFADDR, &ifr)
for IPv6 address I tried
[Code]....
View 5 Replies
View Related
Oct 6, 2010
ok so when i sudo apt-get update i get a bunch of crap that says no address associated with hostname
ive googled this and changed my /etc/hosts to all sorts of things and no luck apache wont even work now either. this server is for a few websites the company i work for hosts. currently i swaped it over to another windows based comp but we want it on ubuntu.
ive heard this is dns related? and that a FQDN is needed? if so im not sure how to re write my /hosts file but as of not it looks like this:
Code:
127.0.0.1localhost
63.119.120.135speed
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
[Code].....
View 9 Replies
View Related
Jul 26, 2011
I just changed my CentOS server from DHCP to static IP address. After the change, I cannot ping other hosts on the same subnet. (I can ping the CentOS itself).The IP address of CentOS is 192.168.0.202.After pinging 192.168.0.106 (106 is on and other host can ping it), arp -a shows? (192.168.0.106) at <incomplete> on eth0 It looks ARP cannot resolve MAC address of hosts 192.168.0.106.
View 1 Replies
View Related
Apr 15, 2011
I have an Ubuntu 10.04 server/router with IPv6 internet connectivity (I have an internet routable /64 subnet). Since I have this abundance of IPv6 addresses I wanted to try and assign v6 addresses to specific users on the local system. I've been looking at ip6tables with packet mangling but I don't seem to be able to find out how to do this or if this is even possible.
Current configuration: eth0: Local network, has the /64 IPv6 public range active and the IPv4 LAN range. tun0: 6in4 tunnel with a ISP assigned public v6 address. eth1: Standard IPv4 internet connection.
All users on my system use the v6 address configured on tun0. I want to force them to use the /64 range which is configured on eth0. If I can force users to use a specific v6 address, I'll configure more then one v6 address on this interface based on the users userID on the system.
View 2 Replies
View Related
Jun 23, 2011
I've two WLAN AP's with both a different IPv6 subnet. When I change from one AP to the other, my IPv6 Global address stays valid and so is the default IPv6 gateway. After a while I get another Global address from the second AP's subnet and another default IPv6 gateway for the second subnet. Both have the same metric. IPv6 connectivity is broken now. When I disable wireless on the laptop and reenable it, it flushes all IP addresses and receives new ones and connectivity is restored. Does anyone know if this is normal behaviour or should it normaly flush all the addresses when changing network? It's a bit silly to have to disable/enable wireless all the time..
View 4 Replies
View Related
Jul 26, 2010
I addes IPv6 address to my interface as
Code:
ifconfig eth0 inet6 add 3fff:ffff:6:5:4:3:2:1
But, when I restart the network service this IPv6 address is gone. How could I make it as a permanent IPv6 address( that should be edited or deleted when I want but not when I only restart the network)to my interface?
View 1 Replies
View Related
Apr 13, 2010
Right now my setup is as follows: I have an Asus Eeepc 900 running Netbook Remix named eeepc, and a media centre running 64-bit Ubuntu named media.When I try to ping or ssh into one machine from the other, for exampleCode:$ ping mediaI get an "unknown host name" error. However, pinging the device's IP address works. How do I get the computers to recognize each other's host names? Did I miss something in the setup?
View 2 Replies
View Related
May 14, 2010
ever since upgrading from karmic to lucid, i cannot ping fqdn hosts in .local tlds. nslookup & dig work, but most other utilities fail (ping, traceroute, etc...). i know .local is an invalid tld, but apple seems to have made it a defacto standard on private networks, so i'd imagine somebody else has seen this issue before... is there a simple fix that doesn't require managing hosts file entries on a bunch of systems?
View 3 Replies
View Related
Jan 2, 2011
Something is definitely odd here:Quote:
[rena@mercury:~ 500]
$ hostname
mercury
[code]....
View 9 Replies
View Related
May 24, 2011
The facts are as follows:
1. I have at work a regular LAN with many PCs, each with a DNS-registered public IP. Therefore I am able to address each of these PCs by their fully-qualified names and, for instance, initiate ssh sessions to any of these computers just by typing "ssh <name_of_machine>" from a terminal.
2. Within the aforementioned LAN I have just created a private network with some clients, which access the LAN through a router (a D-link DIR-825). We have created this private network for many reasons, but most importantly because we need to guarantee that the hosts in this network will remain networked among them even if the LAN goes down for any reason (which unfortunately happens often). But we still need to have access to the hosts in the private network from the LAN.
3. I am able to define port forwarding rules in the router in order to access certain services on the private network's clients. For example. I am able to access (by ssh) hosts "H1" and "H2" on the private network from a client on the LAN by defining rules for forwarding ports "P1" and "P2" on the router's public IP to TCP port 22 on the private IPs of "H1" and "H2", respectively. Then I would access each of these hosts from the LAN by using:
>ssh -p P1 [ip.address.of.router] (for accessing H1) and >ssh -p P2 [ip.address.of.router] (for accessing H2)
4. The problem with the port forwarding approach is that it is not easily scalable. For instance, If I wanted to enable ssh access to each host in the private network, I would have to define a port forwarding rule for each machine, and then REMEMBER all these port rules when initiating a ssh session from the LAN in order to point to the right host. And the problem gets worse when considering more services in addition to ssh.
5. The ideal solution would be to be have a means for addressing each host in the private network individually, in much the same way in which I address the hosts in the LAN (which have DNS-registered names). For instance, in order to access hosts H1 and H2 as in the previous example, i would like to be able to just type
>ssh [name_of_host_H1] (for accessing H1) and >ssh [name_of_host_H2] (for accessing H2)
The bottom line:
I guess I can say that what I need is some kind of combined DNS-ing and routing that allows me to communicate with the hosts in the private network from outside of it in a transparent way.
The question is: what are any possible solutions for accomplishing this? I have searched the web and found stuff about things like VPNs, reverse-proxies and NAT servers, but I really can't understand if any of these could serve to solve my problem (BTW, isn't my router doing some sort of NAT-ing already? could I just add some DNS-ing in some way?)
View 3 Replies
View Related
May 24, 2010
The little home server of mine has bind configured as a caching dns server. I would like to configure it to resolve local host names. I know dnsmasq can do this, so what would someone need to do to get bind to do this?The network is entirely private with all private IPs which are distributed by dhcpd.(While writing this, the feeling creeps in that it would be easier to just have dnsmasq running.)
View 2 Replies
View Related
May 5, 2010
I'm trying to get the Windows machines on my network to access hostname.local addresses. I want to do this without setting up extra software or settings on the Windows computers.
I already have dnsmasq on my server handling all DHCP and DNS requests. How can I get dnsmasq to return an IP address for a .local address?
View 9 Replies
View Related
Mar 8, 2011
I found that I needed to connect them to the same workgroup, which I now have and for the most part it works. However, for one of the computers I do not want to use a .local domain, rather I need to use a .org. But no matter what I do, other computers on the network think it is a .local hostname. Currently the /etc/hostname on the computer file is as follows:
[Code]...
Here is a screenshot of an ipscan done from another computer on the local area network so you can see what I'm talking about.
View 2 Replies
View Related
Jun 27, 2011
Problem:Your company network has internal only hosts / websites with names that end in .local, e.g.Your freshly installed Ubuntu machine works fine on the network, has internet access, etc. but cannot connect to these particular systems.Testing DNS with tools like dig / nslookup works fine, but normal name resolution with ping / telnet / browsers does not work.Solution:1. Open a terminal window2. Enter the command sudo nano /etc/nsswitch.conf3. Change the following line:hosts: files mdns4_minimal [notfound=RETURN] dns mdns4to this:hosts: files dns4. Press Ctrl-X, Y, Enter to saveExplanation:Ubuntu ships configured to do name lookups for self-configuring networks, based on the AppleTalk / mDNS / Bonjour protocol. In the configuration shipped for the resolver, this protocol is considered the final aurhority for the ".local" top level domain, and DNS will not be checked. The above configuration change eliminates this and restricts lookups to (a) /etc/hosts file, followed by (b) DNS
View 1 Replies
View Related
Jan 12, 2010
New CentOS 5.4 system working fine. Sys admins came in and copied the hosts file from one of the servers down to my desktop and ever sincethen machine has been slow (progs take 10-20seconds to load). RunningGnome. Luckily I saved the old hosts file and copied it back and all is now well. But I'd like to understand why, particularly as I will need to change myhostname in the future.
As configured:
/etc/hosts (yes my hostname is "dummyName" that I will need to change later)
127.0.0.1 dummyName localhost.localdomain localhost
[code]....
View 5 Replies
View Related