Ubuntu Networking :: IP Address Is Wrong /etc/hosts Not Working?
Jan 2, 2011Something is definitely odd here:Quote:
[rena@mercury:~ 500]
$ hostname
mercury
[code]....
Something is definitely odd here:Quote:
[rena@mercury:~ 500]
$ hostname
mercury
[code]....
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 RelatedI 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 RelatedThe 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?)
[Code]....
What I want: multiple virtual hosts with ssl and only 1 ip address: In my example: server = 192.168.227.129
[Code]....
my network expertise is tenuous at best. This started because one computer on my network is having trouble updating Google Toolbar information. This is a laptop which joins other wifi networks outside of the house.
Code:
BROKEN:~$ ping toolbar.google.com
PING toolbar.google.com (208.68.139.89) 56(84) bytes of data.
[code]....
I updated Kubuntu from 8.10 to 9.04. After the update, I saw a problem with VPN connections. I am using an mac pro with 2 ethernet ports. Only one of them is connected to switch. I am using a static IP in my local network. The problem is that I lose dns information after connecting and disconnecting to a VPN by KVpns.As I am using static ip, I entered my dns server to resolv.conf file with "nameserver 192.168.128.4". My interfaces file is as follows:
auto lo
iface lo inet loopback
address 127.0.0.1
[code]....
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.
I'm trying to get dhcpd to use a specific IP address as the source address for responses it uses an IP address for. I coded "local-address 172.30.0.4" in the config file. For some responses it uses this address. For some other responses it does not. In those cases it uses the IP address that is the first on the interface. Is there another configuration I should be using, instead?
View 2 Replies View RelatedWell, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?
PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.
I found this IP address in my hosts.allowQuote:ALL: 119.42.68.232I cannot find any other evidence of intrusion.
View 4 Replies View RelatedWhat is the (officially) proper way to configure Apache so that a given IP address can have two or more virtual host names, each going to different distinct configurations (e.g. with different DocumentRoot, Alias, etc), and also do this for the IP address so that it goes to a designated configuration rather than defaulting to the first or a random host name?
Apache documentation does not appear to address this. If so, it has it hidden in a non-obvious place.
1) I'm not sure which IP address to use when I list my machine name in /etc/hosts, particularly after reading:
Quote:
By the w]ay, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1 # should NEVER be named with the name of the machine. It causes problems # for some (stupid) programs, irc and reputedly talk. :^)
Here's what I have now:
Code:
root@eagleswing:~# hostname
eagleswing
root@eagleswing:~# cat /etc/HOSTNAME
eagleswing.5binc
[Code]...
I'm not certain how to include my router in /etc/hosts so I can use it to link my PCs as stated above. I was thinking of writing (see above link):
192.168.2.1 localbelkin Will this work & is it proper?
3) Do I need to make use of any other IP addresses at this link? What are the WAN IP & Default Gateway addresses used for? I am going to be serving documents & running scripts on Apache.
I have DDNS configured and working for dynamic addresses, but it's not quite right for static addresses yet. The DHCP server assigns the static address, but it doesn't update the DNS sever with the associated host name. Which means I have to use the IP address when accessing the host instead of the host name. How can I get the DHCP server to update the DNS with the host name associated with the fixed-address?Here is my current dhcpd.conf.
Code:
ddns-update-style interim;
ignore client-updates;
[code]....
I have a weird problem. My system has two network adapters, one with a 192.x address and one with a 10.x address. I connect to the Internet over a proxy that also has one 192.x address and one 10.x address. The name of this proxy is added to /etc/hosts with the 10.x address. Additionally, the network settings for the 10.x adapter include the proxy as gateway. The 192.x adapter has no gateway. If I ping the proxy, it is correctly resolved over the 10.x address.All my applications are set toirectly connect to the Internet".Some apps (the "good" ones) use the 10.x address to connect to the proxy, while some others (e.g. Firefox, the "bad" ones) use the 192.x address. The latter fail to connect to the Internet because the proxy is configured to let traffic through the 10.x adapter only
View 10 Replies View RelatedI have setup Denyhosts to run on my server, and have been using it succesfully for the last few weeks, to allow me to ssh into my server from my home dev machine.
This morning, I accidentally typed my password incorrectly three times - and ended up being locked out of the system (tghat was ok, because that was what was supposed to happen). I logged into the server via another way and took the following actions (in the order given)
/etc/init.d/ssh stop
/etc/init.d/denyhosts stop
removed my IP address from /etc/hosts.deny
/etc/init.d/ssh start
[Code].....
I am trying to run two web servers (Virtual Hosts) on a single Linux Centos 5.5 box with a single IP address 192.168.0.182. I did all the pre-installation requirements such yum install mysql, yum install mysqladmin, service httpd start, service mysqld start etc etc.In /var/www/html directory, I have two folder called server1 and server2. These two folders have the necessary web server php script files and folders. I opened the browser and managed to install the script on one web server successfully. When I put the IP address 192.168.0.182 on the browser address bar, the page loads without any problem. Now I would like to be able to install the other web server script and I don't know how to?Here is my httpd configuration;
<VirtualHost *>
DocumentRoot /var/www/html/server1
ServerName development.mysite.com
[code]....
This is a fun one (x used in place of real IP's and hostnames):
Code:
$ host 134.174.xxx.xx
xx.xx.174.134.in-addr.arpa domain name pointer xxx.xxx.xxx.com.
$ host xxx.xxx.xxx.com
[Code].....
I wrote/cobbled-together this nifty sendmail script to read some logs and take some disk stats. basically i'm reporting on rsnapshot. When I run it as
Code:
sudo /etc/rsnapshot/mailSta.sh
Everything works wonderful and the emails arrive as expected and fires off an email to two accounts at a remote server
The install went fine but the only issues is getting the server on the network.
I can't ping any thing other that the ip address assigned to the server.
I did it through the gui , the command line and using ifconfig and editing the ifconfi-eth0 file and nothing works.
any ideas on how to get this to work.
i see nothing wrong in the messages.log file either.
I'm using Ubuntu 9.10 on a Lenovo ThinkPad T61 using an Intel PRO/Wireless 3945ABG. My laptop's ability to connect to a wireless network stopped last night, and I'm not sure why. It's definitely something on my end, as my roommate can connect to the internet on a Windows box. I can wire in without a problem, but that's a pain and my Ethernet cable got lost in the shuffle when I moved back to school. I've been able to get into this network before and nothing about it has changed. I've been able to hibernate and restart and such and nothing has ever needed to be reset.
The router's a D-Link WBR-2310. Wicd and Network Manager see the network (I'm back to using wicd) , but wicd appears to get stuck at "Obtaining IP address..." and says "Unable to connect: Cannot obtain IP address". I know my password is correct (I set up the router and I'm the CS undergrad in the apartment so I manage it), lspci sees the wireless card, ifconfig and iwconfig return information about the interface, dmesg|grep wlan0 doesn't seem to have anything terribly out of the ordinary, but here's that output:
Code:
allyanncah@taliesin:~% dmesg | grep wlan0
[ 23.514202] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 36.609016] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 38.756143] wlan0: direct probe to AP 00:24:01:cb:4e:7e (try 1)
[ 38.758791] wlan0: direct probe responded
[ 38.758796] wlan0: authenticate with AP 00:24:01:cb:4e:7e (try 1)
[ 38.760587] wlan0: authenticated
[ 38.760609] wlan0: associate with AP 00:24:01:cb:4e:7e (try 1)
[ 38.763318] wlan0: RX AssocResp from 00:24:01:cb:4e:7e (capab=0x431 status=0 aid=1)
[ 38.763322] wlan0: associated
[ 38.765502] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready .....
I've tried:
- reinstalling wicd
- uninstalling wicd and installing network-manager
- restarting
- shutting down and booting back up
- restarting the router
- sudo /etc/init.d/networking restart
- taking the interface down and back up with ifconfig
I haven't changed anything recently in regards to my wireless card, and all the fixes I've tried are things I've done before without an issue. The only thing I'm wondering about is if doing a hard reset might have broken something (I know this is a cardinal sin, but there's a whole 'nother problem I haven't been able to fix with the OS hanging every once in a while over a VPN daemon when it tries to shut down or restart -- I've left it for hours to see if it actually gets anywhere and no luck, won't do a soft reset). I'm nervous about reinstalling the driver just because I've never had to do it and drivers are a finicky business. I imagine there's a config error somewhere?
Hey guys. I have a client computer PXE booting from my host computer and it is supposed to give the client the ip address 172.16.0.100 however instead it gives it the ip address 172.16.0.208.
I have this set up working with two other computers and there is no noticeable difference other than mac addresses for the network card.
Here is an extract from my '/etc/dhcp3/dhcpd.conf' file...
ddns-update-style-none;
option domain-name "example.org";
default-lease-time 600;
max-lease-time 7200;
[Code]....
I have quadruple checked the mac address of the client and it is definitely "00:07:E9:32:16:81" so why is it not giving it the IP address that I have specified?
I have an HP Pavilion A6750F with an AMD Phenom 9650 Quad Core. 8 GB memoryThe NIC is a REALTEC Semiconductor RLT8111/81688 PCI Express Gigabit Ethernet Controller.The actual MAC address for the NIC is 00:24:21:55:DE:40I have loaded CentOS 5.3 on this host three of four times in various configurations and patching levels.THE PROBLEM: The system identifies the NIC as having MAC FE:FF:FF:FF:FF:FF.When this happens, the network connectivity obviously stops working.It identifies everything else OK, just maps the wrong MAC.I'm no sure how to troubleshoot this problem. I tried rebooting a couple times and once that fixed it. Usually it does not. I reloaded (gasp) Windows Vista on it and it worked ok.This last time, I reloaded CentOS it hung on the bootup (ASK ??), I reset it, it rebooted and everything looks ok; for now.
The system says it is presently using driver r8169
I'm getting millions of log entries in my nscd.log like the ones below. There's no connection to (or from) this IP address so I'm totally at a loss for what would cause this.
Wed 25 May 2011 06:56:49 PM GMT - 5557: Reloading "65.83.237.34" in hosts cache!
Wed 25 May 2011 06:56:49 PM GMT - 5557: Reloading "65.83.237.34" in hosts cache!
Wed 25 May 2011 06:56:49 PM GMT - 5557: Reloading "65.83.237.34" in hosts cache!
[code]...
I've set up two security associations(in and out) on two hosts, and then set up two policies per host that should filter traffic to those SA's. Yet when I try to ping one host from the other I get no response, meaning that the filters on one side work and drop unprotected packets, but both hosts are configured to communicate using ipsec. Can anyone point me in the right direction?
Code:
ip xfrm state add src 192.168.77.23 dst 192.168.77.24 proto esp spi 0x53fa0fdd mode transport reqid 16386 replay-window 32 auth "hmac(sha1)"
[code]...
I'm running vanilla SuSE 11.1 on a vanilla server with Webmin 1.51 and Apache 2.2.
For a month now, I've been trying to get virtual hosts to work with Webmin without success. When I browse for the second site, I continually come up with the default host site.
just forget Webmin and modify the httpd.conf file directly. That defeats the purpose of trying to use Webmin.
Some time throughout the night last night eth0 stopped working entirely, I could not resolve dns or any thing. Oddly though eth0:1 and eth0:2 worked perfectly with a ping -c 10 -I eth0:2 xxx.xxx.xxx.xxx but still could not resolve domain names. My nameservers are good as i have tested them on my other machine. My setup had been working fine for quitte some time and i did not make any changes besides updating webpages, it is a server running Debian Lenny. Unfortunatly since eth0:1 was working for the most part i was trying to change the IP's in the config and accidentally killed the settings using webmin so I cant post to many details at the moment until my host for the dedicated gets my /etc/network/interfaces restored but in the meantime i have searched all over google to try to find an answer to the original problem but cannot so i would like to prepared for when the server is accessible again.
View 2 Replies View RelatedI'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 RelatedCurrently my OS is Ubuntu 9.04 Jaunty Jackalope Desktop OS and my web server is Apache2. I have a public address 60.x.y.z and my pc local address is 10.x.y.z. I have a web app in my Apache2 which currently run in localhost(10.x.y.z).
I would like to enable the web app so that it could be browse from outside. I know there maybe some port forwarding process and some commands involved in order to do that. But I have no idea on the steps to do that.
Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?
View 1 Replies View Related