Re: How to fix ipaddress
On Thu,07.Jan.10, 09:47:56, J.H.Kim wrote: Hi, everyone I want to use network in my office locally. Not connected to internet, I wish to do network in my office only. The network cable is connected with cross-cable to another computer. I set /etc/network/interfaces as follows : auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 192.168.0.7 netmask 255.255.255.0 network 192.168.0.0 broadcaset 192.168.0.255 ^ Typing error or do you actually have this in the file? Anyway, network and broadcast are not really needed because they can be calculated from the address+netmask. gateway 192.168.0.1 dns-nameservers 192.168.0.1 dns-search kornet Sometimes ip address is set to 192.168.0.7. But somtimes ip address is set to 169.254.171.33 which is not set by me, and I don't konw why that address is set to my ip address. I want to set my ipaddress 192.168.0.7 always. What Debian version are you running? There used to be a zeroconf (or similar) package doing this. You might also try to purge network-manager and/or avahi-daemon. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: How to fix ipaddress
I set /etc/network/interfaces as follows : auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 192.168.0.7 netmask 255.255.255.0 network 192.168.0.0 broadcaset 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1 dns-search kornet Sometimes ip address is set to 192.168.0.7. But somtimes ip address is set to 169.254.171.33 which is not set by me, and I don't konw why that address is set to my ip address. I want to set my ipaddress 192.168.0.7 always. Try changing allow-hotplug eth0 to auto eth0 That seems more reliable (subjectively). Cheers, Clive -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to fix ipaddress
I set /etc/network/interfaces as follows : auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 192.168.0.7 netmask 255.255.255.0 network 192.168.0.0 broadcaset 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1 dns-search kornet Sometimes ip address is set to 192.168.0.7. But somtimes ip address is set to 169.254.171.33 which is not set by me, and I don't konw why that address is set to my ip address. I want to set my ipaddress 192.168.0.7 always. Try changing allow-hotplug eth0 to auto eth0 +1 From the interfaces man page: Lines beginning with the word auto are used to identify the physical interfaces to be brought up when ifup is run with the -a option. (This option is used by the system boot scripts.) Physical interface names should follow the word auto on the same line. There can be multiple auto stanzas. ifup brings the named interfaces up in the order listed. Lines beginning with allow- are used to identify interfaces that should be brought up automatically by various subsytems. This may be done using a command such as ifup --allow=hotplug eth0 eth1, which will only bring up eth0 or eth1 if it is listed in an allow-hotplug line. Note that allow-auto and auto are synonyms. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
How to fix ipaddress
Hi, everyone I want to use network in my office locally. Not connected to internet, I wish to do network in my office only. The network cable is connected with cross-cable to another computer. I set /etc/network/interfaces as follows : auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 192.168.0.7 netmask 255.255.255.0 network 192.168.0.0 broadcaset 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1 dns-search kornet Sometimes ip address is set to 192.168.0.7. But somtimes ip address is set to 169.254.171.33 which is not set by me, and I don't konw why that address is set to my ip address. I want to set my ipaddress 192.168.0.7 always. Please tell me how to fix that problem. Thanks in advnace. Best Regards, J.Hwan Kim -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to fix ipaddress
On Thu, 7 Jan 2010, J.H.Kim wrote: Sometimes ip address is set to 192.168.0.7. But somtimes ip address is set to 169.254.171.33 which is not set by me, and I don't konw why that address is set to my ip address. I want to set my ipaddress 192.168.0.7 always. Please tell me how to fix that problem. Hi. Addresses that start with 169.254 (169.254.0.0/16) are called 'link-local' addresses. They are allocated if a DHCP client fails to get an address from a server. The idea is that even if there is no DHCP server available hosts on a LAN can still talk to one another. The /etc/network/interfaces you posted suggests you are using statically assigned addresses, however the presence of a link-local address suggests that a dhcp client is running on the box. So I'd recommend figuring out if you have any dhcp client packages installed (dpkg, apt-get, aptitude) and seeing if they are running (ps aux | grep dh). If you post further information, like the output of the ps command above, we can help you dig further. Cheers, Rob -- I tried to change the world but they had a no-return policy http://www.practicalsysadmin.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org