Make added route persistent after restart
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am adding this line to add a route Route add âÂÂnet 0.0.0.0 netmask 0.0.0.0 gw 95.98.108.14
However, when I restart the machine, the route is gone and I had to insert it again.
How can I make it persistent. I am on Red Hat 6.5 Santiago
rhel route
add a comment |Â
up vote
1
down vote
favorite
I am adding this line to add a route Route add âÂÂnet 0.0.0.0 netmask 0.0.0.0 gw 95.98.108.14
However, when I restart the machine, the route is gone and I had to insert it again.
How can I make it persistent. I am on Red Hat 6.5 Santiago
rhel route
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am adding this line to add a route Route add âÂÂnet 0.0.0.0 netmask 0.0.0.0 gw 95.98.108.14
However, when I restart the machine, the route is gone and I had to insert it again.
How can I make it persistent. I am on Red Hat 6.5 Santiago
rhel route
I am adding this line to add a route Route add âÂÂnet 0.0.0.0 netmask 0.0.0.0 gw 95.98.108.14
However, when I restart the machine, the route is gone and I had to insert it again.
How can I make it persistent. I am on Red Hat 6.5 Santiago
rhel route
edited Feb 8 at 12:53
Jeff Schaller
31.3k846105
31.3k846105
asked Feb 8 at 12:07
tony9099
1074
1074
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
You can just add your comman to be executed on the startup of the machine , or make your route persistant, in order to do that your need to edit /etc/sysconfig/network-scripts/route-eth0
file to define static routes for eth0 interface. This configuration will be persistent even after the system is rebooted.
example:
# route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.10.1 dev eth0
will be:
GATEWAY0=192.168.10.1
NETMASK0=255.255.255.0
ADDRESS0=192.168.100.0
GATEWAY1=10.64.34.1
NETMASK1= 255.255.255.240
ADDRESS1=10.64.34.10
# service network restart
more info here
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You can just add your comman to be executed on the startup of the machine , or make your route persistant, in order to do that your need to edit /etc/sysconfig/network-scripts/route-eth0
file to define static routes for eth0 interface. This configuration will be persistent even after the system is rebooted.
example:
# route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.10.1 dev eth0
will be:
GATEWAY0=192.168.10.1
NETMASK0=255.255.255.0
ADDRESS0=192.168.100.0
GATEWAY1=10.64.34.1
NETMASK1= 255.255.255.240
ADDRESS1=10.64.34.10
# service network restart
more info here
add a comment |Â
up vote
2
down vote
accepted
You can just add your comman to be executed on the startup of the machine , or make your route persistant, in order to do that your need to edit /etc/sysconfig/network-scripts/route-eth0
file to define static routes for eth0 interface. This configuration will be persistent even after the system is rebooted.
example:
# route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.10.1 dev eth0
will be:
GATEWAY0=192.168.10.1
NETMASK0=255.255.255.0
ADDRESS0=192.168.100.0
GATEWAY1=10.64.34.1
NETMASK1= 255.255.255.240
ADDRESS1=10.64.34.10
# service network restart
more info here
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You can just add your comman to be executed on the startup of the machine , or make your route persistant, in order to do that your need to edit /etc/sysconfig/network-scripts/route-eth0
file to define static routes for eth0 interface. This configuration will be persistent even after the system is rebooted.
example:
# route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.10.1 dev eth0
will be:
GATEWAY0=192.168.10.1
NETMASK0=255.255.255.0
ADDRESS0=192.168.100.0
GATEWAY1=10.64.34.1
NETMASK1= 255.255.255.240
ADDRESS1=10.64.34.10
# service network restart
more info here
You can just add your comman to be executed on the startup of the machine , or make your route persistant, in order to do that your need to edit /etc/sysconfig/network-scripts/route-eth0
file to define static routes for eth0 interface. This configuration will be persistent even after the system is rebooted.
example:
# route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.10.1 dev eth0
will be:
GATEWAY0=192.168.10.1
NETMASK0=255.255.255.0
ADDRESS0=192.168.100.0
GATEWAY1=10.64.34.1
NETMASK1= 255.255.255.240
ADDRESS1=10.64.34.10
# service network restart
more info here
edited Feb 8 at 12:26
answered Feb 8 at 12:15
Kingofkech
4801318
4801318
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f422786%2fmake-added-route-persistent-after-restart%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password