You are not logged in.

#1 2007-01-12 21:17:21

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

routing problems?

here's what i got for rc.conf

lo="lo 127.0.0.1"
eth0="eth0 192.168.100.30 netmask 255.255.255.0 broadcast 192.168.100.255"
eth1="eth1 123.123.123.124 netmask 255.255.255.0 broadcast 123.123.123.255"
INTERFACES=(lo eth1 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
#
gateway0="default gw 192.168.100.6"
gateway1="default gw 123.123.123.1"
ROUTES=(gateway1 gateway0)

i have a webserver running which i can access on the local network with 192.168.100.30 all the time, no matter what happens.

however, if i use the external address, sometimes i can get through, but other times i can't (and i'll check to see that the server is still running because i can VPN in and access using the internal ip address).  is there something i'm doing wrong?  thanks.

Offline

#2 2007-01-12 21:28:37

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: routing problems?

a machine only needs one default gateway. You are giving it two. No wonder it is confused.

Remove the gateway0 entries.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2007-01-12 21:33:06

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: routing problems?

cactus wrote:

a machine only needs one default gateway. You are giving it two. No wonder it is confused.

Remove the gateway0 entries.

well don't i look like an ass  :oops:

Offline

#4 2007-01-12 21:48:31

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: routing problems?

heh. no. you just look like ascii.
wink


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB