You are not logged in.

#1 2011-05-20 04:24:36

loki1989
Member
From: Alaska
Registered: 2006-12-20
Posts: 20

[Solved] Static IP but no net available.

I set a static in my rc.conf

My static looks as such. Any ideas. I have to run dhcpcd for it to actually think I have a network. so technically my machine has 2 ip's.

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="mchost"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
eth0="eth0 192.168.50.5 netmask 255.255.255.0 broadcast 192.168.50.255"
INTERFACES=(eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(gateway)

Last edited by loki1989 (2011-05-20 18:59:57)

Offline

#2 2011-05-20 04:41:17

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: [Solved] Static IP but no net available.

Post the output of the following commands, BEFORE you run dhcpcd:

ifconfig
netstat -rn
cat /etc/resolv.conf

EDIT: Posted iproute2 commands by accident.

Last edited by fukawi2 (2011-05-20 04:41:55)

Offline

#3 2011-05-20 07:48:30

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] Static IP but no net available.

I'm not much of a network expert but are you sure your gateway's ip address is 192.168.0.1 and not something like 192.168.50.XXX?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2011-05-20 10:08:00

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: [Solved] Static IP but no net available.

R00KIE wrote:

I'm not much of a network expert but are you sure your gateway's ip address is 192.168.0.1 and not something like 192.168.50.XXX?

Well spotted, that will be the problem.

Also, started this wiki page to detail this kind of debugging:
https://wiki.archlinux.org/index.php/Network_Debugging

Offline

#5 2011-05-20 18:46:53

loki1989
Member
From: Alaska
Registered: 2006-12-20
Posts: 20

Re: [Solved] Static IP but no net available.

R00KIE wrote:

I'm not much of a network expert but are you sure your gateway's ip address is 192.168.0.1 and not something like 192.168.50.XXX?

Fixed that. Rebooting to see if it holds. Also fukawi. I tried the commands you gave me. I also tried the beginners guide for the networking portion. Usually I am a NetworkManager guy but this is console only.

Offline

#6 2011-05-20 18:59:33

loki1989
Member
From: Alaska
Registered: 2006-12-20
Posts: 20

Re: [Solved] Static IP but no net available.

Thanks a ton guys. R00kie I got the gateway fixed. fukawi thank you. I had to edit my nameservers. I followed the instructions and I know I put some in but they may be in a generated file that is broken.

Offline

Board footer

Powered by FluxBB