Today there are two Dell 2U servers that need to be shelves. Before the shelves, eldest brother let me will two network card configuration on IP, network card 1 is a line ip10.xx.xx.57, network card 2 is intranet IP192.168.1.157. When I was told, I added a static route to Linux, so I started to configure:
Eth0:
Device= ' eth0 '
ipaddr=10.xx. xx.57
netmask=255.xxx.xxx.192
dateway=10.130.116.1
ETH1:
Device= ' eth1 '
ipaddr=192.168.1.157
netmask=255.255.255.0
Vi/etc/sysconfig/static-routes
Any net 192.168.0.0 netmask 255.255.0.0 GW 192.168.1.1
After the configuration is complete, very silly asked the eldest brother a question, how NIC 2 did not configure the gateway, the eldest brother said: More Linux network card can only configure a gateway. At this moment suddenly remembered, oneself once saw this sentence. Really, some things, even if you have seen, but there is no real contact, is not clear.
This article is from the "Common Documents" blog, so be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1562320
Configuring Linux static routes and configuring IP