HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Routing details not found after restating network ...
Operating System - Linux
1828798
Members
2444
Online
109985
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2010 01:54 AM
07-01-2010 01:54 AM
Routing details not found after restating network service on Debian
Hello Dears,
OS:- Linux Debian 5.0
After restarting networking service /etc/init.d/networking, the existing routings are disappeared.
Then I manually added all the routing information by executing /etc/init.d/routes
1) Will the routing can be merged with networking script itself?
2) To achieve the point no 1, what are the changes need to be done?
OS:- Linux Debian 5.0
After restarting networking service /etc/init.d/networking, the existing routings are disappeared.
Then I manually added all the routing information by executing /etc/init.d/routes
1) Will the routing can be merged with networking script itself?
2) To achieve the point no 1, what are the changes need to be done?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2010 04:47 AM
07-01-2010 04:47 AM
Re: Routing details not found after restating network service on Debian
1.)
It can be merged to /etc/network/interfaces = the configuration file that controls all network interfaces. Run "man interfaces" to see more information.
2.)
Currently, your /etc/network/interfaces probably looks something like this:
[...]
iface eth0 inet static
address 1.2.3.4
netmask 255.255.255.0
gateway 1.2.3.1
[...]
Use the "up" keyword to add the necessary route commands:
[...]
iface eth0 inet static
address 1.2.3.4
netmask 255.255.255.0
gateway 1.2.3.1
up /etc/init.d/routes
[...]
Alternatively, you can use multiple lines with the "up" keyword and add all the route commands from /etc/init.d/routes to the /etc/network/interfaces file:
[...]
iface eth0 inet static
address 1.2.3.4
netmask 255.255.255.0
gateway 1.2.3.1
up route add -net 5.6.7.8 netmask 255.255.255.0 gw 1.2.3.66
up route add -net 9.0.1.2 netmask 255.255.255.0 gw 1.2.3.67
[...]
You can also use the newer "ip route add ..." command instead of the older "route add ...". This may be necessary if you need IPv6 or other advanced routing features.
MK
It can be merged to /etc/network/interfaces = the configuration file that controls all network interfaces. Run "man interfaces" to see more information.
2.)
Currently, your /etc/network/interfaces probably looks something like this:
[...]
iface eth0 inet static
address 1.2.3.4
netmask 255.255.255.0
gateway 1.2.3.1
[...]
Use the "up" keyword to add the necessary route commands:
[...]
iface eth0 inet static
address 1.2.3.4
netmask 255.255.255.0
gateway 1.2.3.1
up /etc/init.d/routes
[...]
Alternatively, you can use multiple lines with the "up" keyword and add all the route commands from /etc/init.d/routes to the /etc/network/interfaces file:
[...]
iface eth0 inet static
address 1.2.3.4
netmask 255.255.255.0
gateway 1.2.3.1
up route add -net 5.6.7.8 netmask 255.255.255.0 gw 1.2.3.66
up route add -net 9.0.1.2 netmask 255.255.255.0 gw 1.2.3.67
[...]
You can also use the newer "ip route add ..." command instead of the older "route add ...". This may be necessary if you need IPv6 or other advanced routing features.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2010 01:47 PM
07-04-2010 01:47 PM
Re: Routing details not found after restating network service on Debian
Awesome, it works thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP