You are not logged in.

#1 2009-09-19 18:27:24

Lexion
Member
Registered: 2008-03-23
Posts: 510

static ip [SOLVED]

I'm trying to make a server, but I see an error when I restart /etc/rc.d/network:  SIOCADDRT: No such process (I have a verision router.)

Here is my rc.conf (relavent bit):

HOSTNAME="Server"
eth0="eth0 192.268.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.100.0"
static_route1="-net 192.168.200.0/24 gw 192.168.100.0"
ROUTES=(gateway static_route1)

I feel really lost with this.

Last edited by Lexion (2009-09-20 15:03:48)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#2 2009-09-19 21:39:52

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: static ip [SOLVED]

your ip 192.268.0.2 has an invalid broadcast address... 192.168.0.255 (notice the '2').


Also... your default gw 192.168.100.0 is unreachable (its not even a valid ip address)

Last edited by daf666 (2009-09-19 21:47:51)

Offline

#3 2009-09-19 22:29:38

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

Re: static ip [SOLVED]

You seem to have copy and pasted the changes I made to the wiki yesterday, and adjusted a couple of the IP addresses without making sure they're valid...

1) Your IP address (192.268.0.2) appears to be wrong as daf666 mentioned
2) Your default gateway is both invalid (.0 is the network address) nor is it on your local LAN. If your IP address is 192.168.0.2/255.255.255.0 then your gateway must start with 192.168.0. as well.
3) Do you need a static route to an additional network? Most people do *not* need this, so either remove that config, or prefix it with ! in the ROUTES array.

Offline

#4 2009-09-19 23:26:01

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: static ip [SOLVED]

How do I find my gateway and broadcast address?  I currently use dhcpcd (keeping a backup /etc/resolv.conf) and use ifconfig to get them currently, but it doesn't seem to be working...

/etc/rc.conf (relavent bits)

eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 96.235.187.184"
INTERFACE=(eth0)
gateway="default gw 96.235.187.1"
ROUTES=(gateway)

router info:

Broadband Connection (Coax)
Status: Connected
IP Address: 96.235.187.184
Subnet Mask: 255.255.255.0
Default Gateway: 96.235.187.1
DNS Server: 71.250.0.12, 68.237.161.12
IP Address Distribution: Disabled

Last edited by Lexion (2009-09-19 23:26:29)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#5 2009-09-19 23:57:52

banshee28
Member
Registered: 2008-10-18
Posts: 336

Re: static ip [SOLVED]

not sure if you said dhcp was not working, but if you could get it working you can then find the gw and broadcast address. DO you have another pc you can use to test the router and dhcp on?

Also you shouldn't use 192.268.x.x. Try to setup 192.168.0.x ....

Try this:

eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"

If your router is 192.168.0.1 then use that for your gateway address. I dont think you even need that static route in there if your router is working properly.


Arch64, AMD64, LXDE

Offline

#6 2009-09-20 00:11:00

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: static ip [SOLVED]

yes I do:
IP: 192.168.1.6
Bcast: 192.168.1.255
Mask: 255.255.255

Updated rc.conf:

eth0="eth0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255"
gateway="default gw 192.168.1.1"

I still don't understand how you get the IP address (the one after "eth0").


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#7 2009-09-20 00:19:00

banshee28
Member
Registered: 2008-10-18
Posts: 336

Re: static ip [SOLVED]

Lexion wrote:

yes I do:
IP: 192.168.1.6
Bcast: 192.168.1.255
Mask: 255.255.255

Updated rc.conf:

eth0="eth0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255"
gateway="default gw 192.168.1.1"

I still don't understand how you get the IP address (the one after "eth0").

if you are referring to the

192.168.1.3

that you posted, you just make that one up based on whats available. The gateway add is based on your router. you should see it listed if you got the dhcp results you posted above from another PC?


Arch64, AMD64, LXDE

Offline

#8 2009-09-20 01:52:37

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: static ip [SOLVED]

I don't see it, and I tried making one up (192.168.1.11) but it didn't work.  I found the gateway in the router config page (posted above).


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#9 2009-09-20 05:00:03

banshee28
Member
Registered: 2008-10-18
Posts: 336

Re: static ip [SOLVED]

What brand/model router do you have and what is the IP you use to get to the webpage?


Arch64, AMD64, LXDE

Offline

#10 2009-09-20 11:50:55

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: static ip [SOLVED]

I have a verizon C (MI424-WR) router and it's ip is 192.168.1.1

Last edited by Lexion (2009-09-20 11:51:43)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#11 2009-09-20 12:13:58

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: static ip [SOLVED]

I can now ping google without dhcp (nameserver in resolv.conf was messed up).  Thanks for all the help guys.  But now, my server isn't serving to my domain name (dyndns.com).  How do I configure my server/router/domain to make this work?


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#12 2009-09-20 12:42:01

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: static ip [SOLVED]

you need to configure your router to forward http service to your server

Offline

#13 2009-09-20 15:03:33

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: static ip [SOLVED]

I have done that, thanks.  I think the problem is now on the domain name end, so this thread is solved.

Thanks for all the great help.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

Board footer

Powered by FluxBB