Add permanent static route in Windows 7

What is a Routing Table?

A routing table is table that contains dictates who and what interface traffic should be sent to depending on the destination IP address. It is the primary component in the configuration of routers to ensure internetwork connectivity as packets are routed to their destination. For a Windows machine it is used to override the default gateway configured so you can introduce multiple networks and have the two networks be able to communicate with each other.

Display Current Routes

On the command prompt window type route print

This will display all the routes currently available on your system

Add a permanent route

Syntax: route  -p add <destination subnet> mask <Destination subnet mask> <Your gateway>

route -p add 10.1.0.0 mask 255.255.255.0 10.0.0.254

here -p is for permanent route.

 

to delete a route the command is

route delete <destination subnet>
eg.
route delete 172.16.8.0

 

Bringing up interface eth0: Device eth0 does not seem to be preset, delaying initialization – centos 6

This normally happens when you clone the machine and boot from another hardware

Bringing up interface eth0: Device eth0 does not seem to be preset, delaying initialization.      [FAILED]

To fix this, we need to update udev’s mapping rules to point the eth0 definition to the device with the correct MAC address. Open the file /etc/udev/rules.d/70-persistent-net.rules. You should see something similar to what is below:

view source
print?
01 # This file was automatically generated by the /lib/udev/write_net_rules
02 # program, run by the persistent-net-generator.rules rules file.
03 #
04 # You can modify it, as long as you keep each rule on a single
05 # line, and change only the value of the NAME= key.
06
07 # PCI device 0x8086:0x100f (e1000) (custom name provided by external tool)
08 SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:9c:00:16″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
09
10 # PCI device 0x8086:0x100f (e1000) (custom name provided by external tool)
11 SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:9c:00:18″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″

As you can see there are two PCI ethernet adapters present.

 

1 # This file was automatically generated by the /lib/udev/write_net_rules
2 # program, run by the persistent-net-generator.rules rules file.
3 #
4 # You can modify it, as long as you keep each rule on a single
5 # line, and change only the value of the NAME= key.
6
7 # PCI device 0x8086:0x100f (e1000) (custom name provided by external tool)
8 SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:9c:00:18″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″

You’ll also want to update the /etc/sysconfig/network-scripts/ifcfg-eth0 file to reflect the correct MAC address. Then, after a quick system restart your eth0 adapter will be back up.

 

WP Twitter Auto Publish Powered By : XYZScripts.com