LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2006, 05:19 PM   #1
rust8y
Member
 
Registered: May 2006
Posts: 100

Rep: Reputation: 15
Changing default gateway


netstat -rn

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.58.58.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

How do I change the default gateway for 192.168.8.0 from 0.0.0.0 to 192.168.8.1 ?
 
Old 12-17-2006, 05:26 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
Why don't you have a default route? That's a bit odd... any way

Code:
# route add -net 192.168.8.0 netmask 255.255.255.0 gw 192.168.8.1
 
Old 12-18-2006, 08:06 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
ip route change default via 192.168.8.1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent dhcpcd from changing default gateway? MarleyGPN Linux - Networking 3 09-01-2006 02:37 PM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 09:41 AM
Mandrake 8.2 Startup File? and Changing the Default Gateway N4N01D Mandriva 0 08-04-2004 09:12 AM
default gateway avikosan Linux - Networking 3 12-09-2003 06:47 PM
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration