On Thu, Jan 08, 2004 at 10:05:18PM +0000, Jason Holt wrote:
> 
> On Thu, 8 Jan 2004, Scott Paul Robertson wrote:
> > did a 'service network restart' and had no change.  So I did 'ifconfig
> > eth0 208.187.181.229' and then it worked.  No problems.  I plugged my
> > machine back into the router and tested and it was still working.  So
> > after a reboot I checked and it wasn't working.  i tryed 'ifconfig eth0
> > 208.187.181.229' and I could get to my web server, but every other web
> > page I tryed gave me a 'connection refused by ...' message.
> 
> Generally when you run ifconfig, it drops all the routes for that interface in
> the routing table.  So you have to do "route add default gw x.x.x.x", where
> x.x.x.x is the gateway's IP.
> 
>                                       -J
> 

Alright, here's what route says before any changes:
Destination     Gateway      Genmask        Flags Metric Ref  Use Iface
192.168.0.0     *            255.255.255.0  U     0      0      0 eth0
127.0.0.0       *            255.0.0.0      U     0      0      0 lo
default         192.168.0.1  0.0.0.0        UG    0      0      0 eth0

after ifconfig is ran 192.169.0.0 changes to 208.187.181.0

'route add default gw 192.168.0.1' returns:
        SIOCADDRT: Network is unreachable

Scott

Attachment: pgp00000.pgp
Description: PGP signature

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to