Re: [gentoo-user] static IP issue
On Fri, 7 Sep 2012 00:14:00 -0400, Walter Dnes wrote On Thu, Sep 06, 2012 at 02:13:04PM +0100, pat wrote On Thu, 6 Sep 2012 14:00:22 +0100, Neil Bothwick wrote Please post contents of /etc/conf.d/net -- Neil Bothwick Top Oxymorons Number 5: Twelve-ounce pound cake Here it is. config_eth0=192.168.74.101 netmask 255.255.255.0 #routes_eth0=default via 8.8.8.8 routes_eth0=default via 192.168.74.1 I assume 192.168.74.1 is your modem. Correct? No mention of broadcast address. I don't know if that's critical or not. Try either of the following... config_eth0=192.168.74.101 netmask 255.255.255.0 broadcast 192.168.74.255 routes_eth0=default via 192.168.74.1 or config_eth0=192.168.74.101/24 broadcast 192.168.74.255 routes_eth0=default via 192.168.74.1 -- Walter Dnes waltd...@waltdnes.org I don't run desktop environments; I run useful applications Doesn't help :-( Thanks Pat Freehosting PIPNI - http://www.pipni.cz/
[gentoo-user] static IP issue
Hello, I've installed Gentoo into VirtualBox. I want it to has static IP address and I've followed Hand book instructions and the OpenRC/net.example. After reboot there's a warning: WARNING: net.lo has already been started and each network depending service failes to start with: service_name: waiting for net.eth0 (51); where the 51 is a time which decrements to 0. I've searched net, but without success :-\ Can someone help me? The installation is fresh one. Thanks Pat Freehosting PIPNI - http://www.pipni.cz/
Re: [gentoo-user] static IP issue
2012/9/6 pat p...@xvalheru.org Hello, I've installed Gentoo into VirtualBox. I want it to has static IP address and I've followed Hand book instructions and the OpenRC/net.example. After reboot there's a warning: WARNING: net.lo has already been started and each network depending service failes to start with: service_name: waiting for net.eth0 (51); where the 51 is a time which decrements to 0. I've searched net, but without success :-\ Can someone help me? The installation is fresh one. Did you create a symlink for /etc/init.d/net.eth0 and did you add it to the runlevel (rc-update add net.eth0 default)?
Re: [gentoo-user] static IP issue
On Thu, 6 Sep 2012 14:10:21 +0200, Michael Hampicke wrote 2012/9/6 pat p...@xvalheru.org Hello, I#39;ve installed Gentoo into VirtualBox. I want it to has static IP address and I#39;ve followed Hand book instructions and the OpenRC/net.example. After reboot there#39;s a warning: WARNING: net.lo has already been started and each network depending service failes to start with: service_name: waiting for net.eth0 (51); where the 51 is a time which decrements to 0. I#39;ve searched net, but without success :-\ Can someone help me? The installation is fresh one. Did you create a symlink for /etc/init.d/net.eth0 and did you add it to the runlevel (rc-update add net.eth0 default)? Hi, Yes, I did. When the Gentoo boots to shell there#39;s only loop back interface. Pat Freehosting PIPNI - http://www.pipni.cz/
Re: [gentoo-user] static IP issue
On Thu, 6 Sep 2012 13:21:43 +0100, pat wrote: Yes, I did. When the Gentoo boots to shell there#39;s only loop back interface. Please post contents of /etc/conf.d/net -- Neil Bothwick Top Oxymorons Number 5: Twelve-ounce pound cake signature.asc Description: PGP signature
Re: [gentoo-user] static IP issue
On Thu, 6 Sep 2012 14:00:22 +0100, Neil Bothwick wrote On Thu, 6 Sep 2012 13:21:43 +0100, pat wrote: Yes, I did. When the Gentoo boots to shell there's only loop back interface. Please post contents of /etc/conf.d/net -- Neil Bothwick Top Oxymorons Number 5: Twelve-ounce pound cake Here it is. Thanks Pat Freehosting PIPNI - http://www.pipni.cz/ net Description: Binary data
Re: [gentoo-user] static IP issue
Yes, I did. When the Gentoo boots to shell there's only loop back interface. Are you sure that the kernel module for your network interface is loaded? What's the output of ifconfig -a after a reboot?
Re: [gentoo-user] static IP issue
On Thu, Sep 6, 2012 at 4:33 AM, pat p...@xvalheru.org wrote: Hello, I've installed Gentoo into VirtualBox. I want it to has static IP address and I've followed Hand book instructions and the OpenRC/net.example. After reboot there's a warning: WARNING: net.lo has already been started and each network depending service failes to start with: service_name: waiting for net.eth0 (51); where the 51 is a time which decrements to 0. I've searched net, but without success :-\ Can someone help me? The installation is fresh one. Thanks Pat Freehosting PIPNI - http://www.pipni.cz/ I have a 32-bit Gentoo Virtualbox VM where I am actually sending this email from. No problems with having a static IP: gentoo-32b ~ # ifconfig -a eth0 Link encap:Ethernet HWaddr 08:00:27:d4:6a:35 inet addr:192.168.1.125 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fed4:6a35/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:103 errors:0 dropped:0 overruns:0 frame:0 TX packets:108 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10493 (10.2 KiB) TX bytes:9152 (8.9 KiB) loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) gentoo-32b ~ # cat /etc/conf.d/net net network gentoo-32b ~ # cat /etc/conf.d/net # This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /usr/share/doc/openrc*/net.example* and save your configuration # in /etc/conf.d/net (this file :]!). config_eth0=192.168.1.125 netmask 255.255.255.0 routes_eth0=default via 192.168.1.1 gentoo-32b ~ # If it helps, I have the VM NEtwork settings set to Bridged Adapter. HTH, Mark
Re: [gentoo-user] static IP issue
On Thu, 6 Sep 2012 16:23:57 +0200, Michael Hampicke wrote Yes, I did. When the Gentoo boots to shell there's only loop back interface. Are you sure that the kernel module for your network interface is loaded? What's the output of ifconfig -a after a reboot? ifconfig -a gives: eth0 Link encap:Ethernet HWaddr 08:00:27:26:80:c5 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:28 errors:0 dropped:0 overruns:0 frame:0 TX packets:28 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1988 (1.9 KiB) TX bytes:1988 (1.9 KiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) and I didn't compile driver as module but into kernel and when I switch to dynamic IP address it works OK, so this is (probably) not issue of the driver. Pat Freehosting PIPNI - http://www.pipni.cz/
Re: [gentoo-user] static IP issue
On Thu, 6 Sep 2012 08:37:33 -0700, Mark Knecht wrote On Thu, Sep 6, 2012 at 4:33 AM, pat p...@xvalheru.org wrote: Hello, I've installed Gentoo into VirtualBox. I want it to has static IP address and I've followed Hand book instructions and the OpenRC/net.example. After reboot there's a warning: WARNING: net.lo has already been started and each network depending service failes to start with: service_name: waiting for net.eth0 (51); where the 51 is a time which decrements to 0. I've searched net, but without success :-\ Can someone help me? The installation is fresh one. Thanks Pat I have a 32-bit Gentoo Virtualbox VM where I am actually sending this email from. No problems with having a static IP: gentoo-32b ~ # ifconfig -a eth0 Link encap:Ethernet HWaddr 08:00:27:d4:6a:35 inet addr:192.168.1.125 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fed4:6a35/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:103 errors:0 dropped:0 overruns:0 frame:0 TX packets:108 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10493 (10.2 KiB) TX bytes:9152 (8.9 KiB) loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) gentoo-32b ~ # cat /etc/conf.d/net net network gentoo-32b ~ # cat /etc/conf.d/net # This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /usr/share/doc/openrc*/net.example* and save your configuration # in /etc/conf.d/net (this file :]!). config_eth0=192.168.1.125 netmask 255.255.255.0 routes_eth0=default via 192.168.1.1 gentoo-32b ~ # If it helps, I have the VM NEtwork settings set to Bridged Adapter. HTH, Mark Hello, I have bridged network too and my configuration looks similar to yours, but I have 64-bit Gentoo. Pat Freehosting PIPNI - http://www.pipni.cz/
Re: [gentoo-user] static IP issue
On Thu, Sep 06, 2012 at 02:13:04PM +0100, pat wrote On Thu, 6 Sep 2012 14:00:22 +0100, Neil Bothwick wrote Please post contents of /etc/conf.d/net -- Neil Bothwick Top Oxymorons Number 5: Twelve-ounce pound cake Here it is. config_eth0=192.168.74.101 netmask 255.255.255.0 #routes_eth0=default via 8.8.8.8 routes_eth0=default via 192.168.74.1 I assume 192.168.74.1 is your modem. Correct? No mention of broadcast address. I don't know if that's critical or not. Try either of the following... config_eth0=192.168.74.101 netmask 255.255.255.0 broadcast 192.168.74.255 routes_eth0=default via 192.168.74.1 or config_eth0=192.168.74.101/24 broadcast 192.168.74.255 routes_eth0=default via 192.168.74.1 -- Walter Dnes waltd...@waltdnes.org I don't run desktop environments; I run useful applications
Re: [gentoo-user] static ip
2009/8/10 Stroller strol...@stellar.eclipse.co.uk On 9 Aug 2009, at 08:01, Andrey Vul wrote: I somehow killed the dhcp in my openwrt router and failsafe mode requires a static IP address. Stopping net.eth0 and then running '#ifconfig eth0 up; ifconfig eth0 192.168.1.2' resulted with a 'No route to host' error when telnetting to 192.168.1.1 . Better to edit /etc/conf.d/net for static IP, then restart /etc/init.d/net.eth0 See /etc/conf.d/net.example Probably something like: config_eth0=( 192.168.1.44 netmask 255.255.255.0 broadcast 192.168.1.255 ) routes_eth0=( default via 192.168.1.1 ) Stroller. Check your /etc/resolv.conf as well. Make sure any automated networking daemons are shut off, because some of them like to over-write this, which is bad if they aren't working correctly with the network for some reason. This is often the difference between unknown route to host and a functional network! ~daid
[gentoo-user] static ip
I somehow killed the dhcp in my openwrt router and failsafe mode requires a static IP address. Stopping net.eth0 and then running '#ifconfig eth0 up; ifconfig eth0 192.168.1.2' resulted with a 'No route to host' error when telnetting to 192.168.1.1 . -- Andrey Vul andrey dot vul at gmail dot com andrey dot vul at utoronto dot ca A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? Google is your friend.
Re: [gentoo-user] static ip
On Sunday 09 August 2009, Andrey Vul wrote: I somehow killed the dhcp in my openwrt router and failsafe mode requires a static IP address. Stopping net.eth0 and then running '#ifconfig eth0 up; ifconfig eth0 192.168.1.2' resulted with a 'No route to host' error when telnetting to 192.168.1.1 . I think the No route to host means that your router interface is not up for some reason. Do you get the same problem if you run /etc/init.d/net.eth0 start and then you run ifconfig eth0 192.168.1.2 Otherwise also run: route add default gw 192.168.1.1 HTH. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] static ip
On 9 Aug 2009, at 08:01, Andrey Vul wrote: I somehow killed the dhcp in my openwrt router and failsafe mode requires a static IP address. Stopping net.eth0 and then running '#ifconfig eth0 up; ifconfig eth0 192.168.1.2' resulted with a 'No route to host' error when telnetting to 192.168.1.1 . Better to edit /etc/conf.d/net for static IP, then restart /etc/init.d/ net.eth0 See /etc/conf.d/net.example Probably something like: config_eth0=( 192.168.1.44 netmask 255.255.255.0 broadcast 192.168.1.255 ) routes_eth0=( default via 192.168.1.1 ) Stroller.
Re: [gentoo-user] static IP, gateway and netmask setting
thanks very much! ill give it a try 2007/11/23, Alberto Avi [EMAIL PROTECTED]: i have to admit i totally guessed the 10.0.0.255 value Hi Rafael, ipcalc is you friend ! [EMAIL PROTECTED] ~ $ ipcalc 10.0.0.1/255.255.255.0 Address: 10.0.0.1 1010... 0001 Netmask: 255.255.255.0 = 24 ... Wildcard: 0.0.0.255... = Network: 10.0.0.0/24 1010... HostMin: 10.0.0.1 1010... 0001 HostMax: 10.0.0.254 1010... 1110 Broadcast: 10.0.0.255 1010... Hosts/Net: 254 Class A, Private Internet -- [EMAIL PROTECTED] mailing list
[gentoo-user] static IP, gateway and netmask setting
Hello, i intend to do a basic static network set up. My goal is to set up the following: ip:10.0.0.1 netmask: 255.255.255.0 gateway: 10.0.0.2 guiding myself with the gentoo handbook i clumsily edited the /etc/conf.d/net file leaving it like this config_eth0=( 10.0.0.1 netmask 255.255.255.0 brd 10.0.0.255 ) routes_eth0=( default via 10.0.0.2 ) i have to admit i totally guessed the 10.0.0.255 value should this work? are all the values listed here correct and/or necessary? thanks in advance people, as usual, your help is very appreciated take care Rafael
Re: [gentoo-user] static IP, gateway and netmask setting
i have to admit i totally guessed the 10.0.0.255 value Hi Rafael, ipcalc is you friend ! [EMAIL PROTECTED] ~ $ ipcalc 10.0.0.1/255.255.255.0 Address: 10.0.0.1 1010... 0001 Netmask: 255.255.255.0 = 24 ... Wildcard: 0.0.0.255... = Network: 10.0.0.0/24 1010... HostMin: 10.0.0.1 1010... 0001 HostMax: 10.0.0.254 1010... 1110 Broadcast: 10.0.0.255 1010... Hosts/Net: 254 Class A, Private Internet -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Static ip address
On 12 December 2006 23:15, Felipe Ribeiro wrote: Did they change anything on how you configure your static ip address? I've updated my system today and connot access the internet anymore, when using my static ip address, just dhcp. I used to use my /etc/conf.d/net like this: config_eth0=(192.168.254.2 netmask 255.255.255.0 broadcast 192.168.254.255) routes_eth0=(default via 192.168.254.254) The syntax has changed slightly. Have a look at /etc/conf.d/net.example. Uwe -- Mark Twain: I rather decline two drinks than a German adjective. http://www.SysEx.com.na -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
On Wednesday 13 December 2006 00:47, Uwe Thiem wrote: On 12 December 2006 23:15, Felipe Ribeiro wrote: Did they change anything on how you configure your static ip address? I've updated my system today and connot access the internet anymore, when using my static ip address, just dhcp. I used to use my /etc/conf.d/net like this: config_eth0=(192.168.254.2 netmask 255.255.255.0 broadcast 192.168.254.255) routes_eth0=(default via 192.168.254.254) The syntax has changed slightly. Have a look at /etc/conf.d/net.example. Yes, it has changed, but I don't see any init complaints... so I decided to let it run as-is. Thank you. -- Jerry McBride -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
On 12/13/06, Jerry McBride [EMAIL PROTECTED] wrote: On Wednesday 13 December 2006 00:47, Uwe Thiem wrote: On 12 December 2006 23:15, Felipe Ribeiro wrote: Did they change anything on how you configure your static ip address? I've updated my system today and connot access the internet anymore, when using my static ip address, just dhcp. I used to use my /etc/conf.d/net like this: config_eth0=(192.168.254.2 netmask 255.255.255.0 broadcast 192.168.254.255) routes_eth0=(default via 192.168.254.254) The syntax has changed slightly. Have a look at /etc/conf.d/net.example. Yes, it has changed, but I don't see any init complaints... so I decided to let it run as-is. Thank you. -- Jerry McBride -- gentoo-user@gentoo.org mailing list i tried this, but still doesn't work modules=(ifconfig) config_eth0=(192.168.254.2) routes_eth0=(default via 192.168.254.254) dns_servers_eth0=(192.168.254.254) [ ]s -- Felipe Ribeiro [EMAIL PROTECTED] 83 9979-3161 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
On 12/13/06, Felipe Ribeiro [EMAIL PROTECTED] wrote: On 12/13/06, Jerry McBride [EMAIL PROTECTED] wrote: On Wednesday 13 December 2006 00:47, Uwe Thiem wrote: On 12 December 2006 23:15, Felipe Ribeiro wrote: Did they change anything on how you configure your static ip address? I've updated my system today and connot access the internet anymore, when using my static ip address, just dhcp. I used to use my /etc/conf.d/net like this: config_eth0=(192.168.254.2 netmask 255.255.255.0 broadcast 192.168.254.255) routes_eth0=(default via 192.168.254.254) The syntax has changed slightly. Have a look at /etc/conf.d/net.example. Yes, it has changed, but I don't see any init complaints... so I decided to let it run as-is. Thank you. -- Jerry McBride -- gentoo-user@gentoo.org mailing list i tried this, but still doesn't work modules=(ifconfig) config_eth0=(192.168.254.2) routes_eth0=(default via 192.168.254.254) dns_servers_eth0=(192.168.254.254) [ ]s -- Felipe Ribeiro [EMAIL PROTECTED] 83 9979-3161 Also, this message is appearing when lo is starting. Is there any relation with my problem? * Starting lo * Bringing up lo * 127.0.0.1/8 SIOCSIFADDR: File exists SIOCSIFFLAGS: Cannot assign requested address SIOCSIFNETMASK: Cannot assign requested address SIOCSIFBRDADDR: Cannot assign requested address SIOCSIFFLAGS: Cannot assign requested address [ !! ] []s -- Felipe Ribeiro [EMAIL PROTECTED] 83 9979-3161 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
On 13 December 2006 17:38, Felipe Ribeiro wrote: i tried this, but still doesn't work modules=(ifconfig) Why do you insist on ifconfig? /etc/conf.d/net.example clearly indicates that iproute2 is the default - for good reason. config_eth0=(192.168.254.2) Try: config_eth0=( 192.168.254.2/24 ) /24 tells the system to use the first 24 bits of the IP address as the network part and the remaining 8 bits as the host part. Simply a shorter notation than the netmask 255.255.255.0. routes_eth0=(default via 192.168.254.254) dns_servers_eth0=(192.168.254.254) Uwe -- Mark Twain: I rather decline two drinks than a German adjective. http://www.SysEx.com.na -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
On 12/13/06, Uwe Thiem [EMAIL PROTECTED] wrote: On 13 December 2006 17:38, Felipe Ribeiro wrote: i tried this, but still doesn't work modules=(ifconfig) Why do you insist on ifconfig? /etc/conf.d/net.example clearly indicates that iproute2 is the default - for good reason. config_eth0=(192.168.254.2) Try: config_eth0=( 192.168.254.2/24 ) /24 tells the system to use the first 24 bits of the IP address as the network part and the remaining 8 bits as the host part. Simply a shorter notation than the netmask 255.255.255.0. routes_eth0=(default via 192.168.254.254) dns_servers_eth0=(192.168.254.254) Uwe -- Mark Twain: I rather decline two drinks than a German adjective. http://www.SysEx.com.na -- gentoo-user@gentoo.org mailing list With iproute2 it worked! Thanks everybody! [ ]s -- Felipe Ribeiro [EMAIL PROTECTED] 83 9979-3161 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
Era o que eu ia te dizer agora! :p Eu tive esse mesmo problema. Se liga, é tu que outro dia encontrei aqui na lista e que faz computação na UFCG? 2006/12/13, Felipe Ribeiro [EMAIL PROTECTED]: On 12/13/06, Uwe Thiem [EMAIL PROTECTED] wrote: On 13 December 2006 17:38, Felipe Ribeiro wrote: i tried this, but still doesn't work modules=(ifconfig) Why do you insist on ifconfig? /etc/conf.d/net.example clearly indicates that iproute2 is the default - for good reason. config_eth0=(192.168.254.2) Try: config_eth0=( 192.168.254.2/24 ) /24 tells the system to use the first 24 bits of the IP address as the network part and the remaining 8 bits as the host part. Simply a shorter notation than the netmask 255.255.255.0. routes_eth0=(default via 192.168.254.254) dns_servers_eth0=(192.168.254.254) Uwe -- Mark Twain: I rather decline two drinks than a German adjective. http://www.SysEx.com.na -- gentoo-user@gentoo.org mailing list With iproute2 it worked! Thanks everybody! [ ]s -- Felipe Ribeiro [EMAIL PROTECTED] 83 9979-3161 -- gentoo-user@gentoo.org mailing list -- Leandro Melo de Sales. Computer Science MSc Candidate Pervasive Computing Lab - embedded.ufcg.edu.br Federal University of Campina Grande - UFCG / Brazil 083 33101404 (extension 208)
Re: [gentoo-user] Static ip address
On Wednesday 13 December 2006 13:46, Uwe Thiem wrote: On 13 December 2006 17:38, Felipe Ribeiro wrote: i tried this, but still doesn't work modules=(ifconfig) Why do you insist on ifconfig? /etc/conf.d/net.example clearly indicates that iproute2 is the default - for good reason. What's wrong with ifconfig? config_eth0=(192.168.254.2) Try: config_eth0=( 192.168.254.2/24 ) /24 tells the system to use the first 24 bits of the IP address as the network part and the remaining 8 bits as the host part. Simply a shorter notation than the netmask 255.255.255.0. It 's just as good as specifying the complete mask. For some of us, it's iminately more readable routes_eth0=(default via 192.168.254.254) dns_servers_eth0=(192.168.254.254) Uwe -- Jerry McBride -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
On 13 December 2006 21:34, Leandro Melo de Sales wrote: Era o que eu ia te dizer agora! :p Eu tive esse mesmo problema. Se liga, é tu que outro dia encontrei aqui na lista e que faz computação na UFCG? You are most probably right. ;-) Uwe -- Mark Twain: I rather decline two drinks than a German adjective. http://www.SysEx.com.na -- gentoo-user@gentoo.org mailing list
[gentoo-user] Static ip address
Did they change anything on how you configure your static ip address? I've updated my system today and connot access the internet anymore, when using my static ip address, just dhcp. I used to use my /etc/conf.d/net like this: config_eth0=(192.168.254.2 netmask 255.255.255.0 broadcast 192.168.254.255) routes_eth0=(default via 192.168.254.254) [ ]s -- Felipe Ribeiro [EMAIL PROTECTED] 83 9979-3161 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
Felipe Ribeiro wrote: Did they change anything on how you configure your static ip address? I've updated my system today and connot access the internet anymore, when using my static ip address, just dhcp. I used to use my /etc/conf.d/net like this: config_eth0=("192.168.254.2 netmask 255.255.255.0 broadcast 192.168.254.255") routes_eth0=("default via 192.168.254.254") [ ]s -- Felipe Ribeiro [EMAIL PROTECTED] 83 9979-3161 what about your /etc/resolv.conf ??? does it have the right nameserver ?? has i've seen in /etc/conf.d/net.example, you need to expecify more options for /etc/resolv.conf reflet yout new reality (they are not needed) dns_domain_eth0="domain" dns_servers_eth0="xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy" the options above are not needed, but they help ! Cheers -- Use OpenSource [EMAIL PROTECTED] www.feiticeir0.no-ip.org blog.feiticeir0.no-ip.org GPG Public Key Human Knowledge Belongs To The World Gentoo Linux
Re: [gentoo-user] Static ip address
what about your /etc/resolv.conf ??? does it have the right nameserver ?? has i've seen in /etc/conf.d/net.example, you need to expecify more options for /etc/resolv.conf reflet yout new reality (they are not needed) dns_domain_eth0=domain dns_servers_eth0=xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy the options above are not needed, but they help ! resolv.conf is ok, it was working fine until i've updated my system. -- Felipe Ribeiro [EMAIL PROTECTED] 83 9979-3161 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Static ip address
On Tuesday 12 December 2006 16:15, Felipe Ribeiro wrote: Did they change anything on how you configure your static ip address? I've updated my system today and connot access the internet anymore, when using my static ip address, just dhcp. I used to use my /etc/conf.d/net like this: config_eth0=(192.168.254.2 netmask 255.255.255.0 broadcast 192.168.254.255) routes_eth0=(default via 192.168.254.254) Yes! Much has changed in baselayout... The more recent versions rewrite /etc/resolv.conf with the data you spec in /etc/conf.d/net Here's a simple /etc/conf.d/net file I have set for a client on my home lan: modules=(ifconfig) config_eth0=(192.168.0.12 netmask 25.255.255.0 broadcast 192.168.0.255) routes_eth0=(default via 192.168.0.1) dns_domain_eth0=(my.domain) dns_search_eth0=(search hs.ma.comcast.net.) dns_servers_eth0=(68.87.75.255 68.87.64.255) Cheers... -- Jerry McBride -- gentoo-user@gentoo.org mailing list
[gentoo-user] static ip wont connect but dhcp will
I have my connection set to get an ip using dhcp and this works. However if I try to use a static ip, by setting it in /etc/conf.d/net, it doesn't work, even if I try the ip I have been given by the dhcp server. Nor does it work with an ip obtained using apipa. I can ping other parts of the local network but not out onto the internet. the config I have in /etc/conf.d/net is : config_eth0=( 192.168.1.14 netmask 255.255.255.0 ) routes_eth0=( default gw 192.168.1.1 ) When I run /etc/init.d/net.eth0 start I get green oks for everything, but trying to ping www.gentoo.org I get the following error, immediately: ping: unknown host www.gentoo.org Any clues as to what's up? Matt -- %%% Dr. Matthew R. Lee. CASEB ECIM Departamento de Ecologia, P. Universidad Catolica de Chile, Alameda 340, Santiago, CP 6513677 CHILE. [EMAIL PROTECTED] [EMAIL PROTECTED] URL: meiochile.matthewlee.org %%% -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] static ip wont connect but dhcp will
On Friday 12 May 2006 07:27, Matthew R. Lee [EMAIL PROTECTED] wrote about '[gentoo-user] static ip wont connect but dhcp will': I have my connection set to get an ip using dhcp and this works. However if I try to use a static ip, by setting it in /etc/conf.d/net, it doesn't work, even if I try the ip I have been given by the dhcp server. When I run /etc/init.d/net.eth0 start I get green oks for everything, but trying to ping www.gentoo.org I get the following error, immediately: ping: unknown host www.gentoo.org Any clues as to what's up? Can you ping by ip address outside the network? Try pinging these addresses -- they are various google servers near me: 64.233.167.104 64.233.167.147 64.233.167.99 Your problem sounds like not having a valid /etc/resolv.conf, which a part of the process in resolving names to ip addresses. DHCP clients will often write this file based on the information received from the DHCP server, but they often save the old version and put it back into place when they shut down. -- If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability. -- Gentoo Developer Ciaran McCreesh pgp4UlcKbu9Eh.pgp Description: PGP signature