LinuxQuestions.org
Visit Jeremy's Blog.
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 03-20-2011, 09:37 PM   #1
hoanginlove81
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
Angry " Route add -net " not working at startup


Hi all,

I have problem like this.

I add "route add -net ..." in /etc/network/interfaces

, but when restart server, it not working, not affected.
Then i have to manual add that command. How can i add it automatic ?
 
Old 03-20-2011, 09:44 PM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
You lack of the state (up, down) at the begin of your command. Try this:
Code:
up route add -net ...
down route del -net
 
  


Reply

Tags
route, tutorials


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
"ip route add" doesn't keep changes on network restart Hosferatu Linux - Networking 4 06-11-2008 12:52 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
"route add default gw" - trouble Vijayasarathy Linux - Networking 2 03-23-2005 07:54 AM
"route add" gets reset at reboot trees Linux - Networking 5 01-21-2004 04:18 PM
Permanently set "route add" -host and default gw sacants Linux - Newbie 1 07-18-2003 04:04 AM

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

All times are GMT -5. The time now is 04:29 AM.

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