<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: linux dual nic interfaces configuration in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964751#M82741</link>
    <description>I tried creating a config file:&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/route-eth1&lt;BR /&gt;&lt;BR /&gt;ADDRESS1=10.40.191.0&lt;BR /&gt;NETMASK1=255.255.255.224&lt;BR /&gt;GATEWAY1=10.40.191.65&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------&lt;BR /&gt;I am assuming that the 0 after ADDRESS is&lt;BR /&gt;used by some startup script for eth0 in&lt;BR /&gt;your example. So I change it to 1 for eth1.&lt;BR /&gt;I rebooted and nothing happened.&lt;BR /&gt;&lt;BR /&gt;I can't explain it any better if I do not&lt;BR /&gt;know what it is that I need to explain.&lt;BR /&gt;Other than I have a test network 10.40.191&lt;BR /&gt;with netmask of 255.255.255.224.&lt;BR /&gt;&lt;BR /&gt;Test interface is 10.40.191.51&lt;BR /&gt;Router one hop away is 10.40.191.33&lt;BR /&gt;&lt;BR /&gt;I tried also manually:&lt;BR /&gt;&lt;BR /&gt;route add -net 10.40.191.0 netmask 255.255.255.224 gw 10.40.191.33 metric&lt;BR /&gt; 1 dev eth1</description>
    <pubDate>Mon, 19 Mar 2007 17:42:50 GMT</pubDate>
    <dc:creator>jerry1</dc:creator>
    <dc:date>2007-03-19T17:42:50Z</dc:date>
    <item>
      <title>linux dual nic interfaces configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964748#M82738</link>
      <description>I have two nic cards in Linux box.&lt;BR /&gt;One is production and one is for testing, or&lt;BR /&gt;future backup network.&lt;BR /&gt;How do I specify a network route for this &lt;BR /&gt;second testing interface. There are way too&lt;BR /&gt;many network config files to work with here.&lt;BR /&gt;Basically I have for working info:&lt;BR /&gt;&lt;BR /&gt;ncc9t 10.40.191.51 255.255.255.224 &lt;BR /&gt;ncc9  10.40.167.17 255.255.252.0&lt;BR /&gt;Default route 10.40.164.1&lt;BR /&gt;&lt;BR /&gt;Need alternate route for network 10.40.191. ??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;127.0.0.1     localhost.localdomain localhost&lt;BR /&gt;10.40.167.17  ncc9&lt;BR /&gt;10.40.191.51  ncc9t&lt;BR /&gt;&lt;BR /&gt;netstat -rn&lt;BR /&gt;Kernel IP routing table&lt;BR /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;BR /&gt;10.40.191.32    0.0.0.0         255.255.255.224 U         0 0          0 eth1&lt;BR /&gt;10.40.164.0     0.0.0.0         255.255.252.0   U         0 0          0 eth0&lt;BR /&gt;169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1&lt;BR /&gt;0.0.0.0         10.40.164.1     0.0.0.0         UG        0 0          0 eth0&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth1&lt;BR /&gt;# Intel Corporation 82545GM Gigabit Ethernet Controller&lt;BR /&gt;DEVICE=eth1&lt;BR /&gt;ONBOOT=yes&lt;BR /&gt;BOOTPROTO=static&lt;BR /&gt;IPADDR=10.40.191.51&lt;BR /&gt;NETMASK=255.255.255.224&lt;BR /&gt;HWADDR=00:15:17:0B:01:4D&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;BR /&gt;DEVICE=eth0&lt;BR /&gt;BOOTPROTO=static&lt;BR /&gt;BROADCAST=10.40.167.255&lt;BR /&gt;IPADDR=10.40.167.17&lt;BR /&gt;NETMASK=255.255.252.0&lt;BR /&gt;NETWORK=10.40.164.0&lt;BR /&gt;ONBOOT=yes&lt;BR /&gt;TYPE=Ethernet&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network&lt;BR /&gt;NETWORKING=yes&lt;BR /&gt;HOSTNAME=ncc9&lt;BR /&gt;GATEWAY=10.40.164.1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Mar 2007 15:47:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964748#M82738</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2007-03-19T15:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: linux dual nic interfaces configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964749#M82739</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;No matter how many NIC cards you have you can only have one default route.&lt;BR /&gt;&lt;BR /&gt;That will be the systems first choice concerning routing traffic.&lt;BR /&gt;&lt;BR /&gt;After that it will use the gateway assigned to that NIC.&lt;BR /&gt;&lt;BR /&gt;I do not see a compelling reason to change configuration. If there is a problem, you need to state it more clearly.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 19 Mar 2007 16:27:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964749#M82739</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-19T16:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: linux dual nic interfaces configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964750#M82740</link>
      <description>If you want to configure static routes per interface, you need to create a file called:&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/route-ethX&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;Assume your eth0 device has the address 192.168.0.1 on the 192.168.0 network.  You  want to set a static route through the router&lt;BR /&gt;192.168.0.35 to reach the 10.0.35.0 network (netmask 255.255.255.0).&lt;BR /&gt;Using the 'ip route' syntax, the entry in route-eth0 might read&lt;BR /&gt;                                                                                &lt;BR /&gt;  10.0.35.0/24 via 192.168.0.35&lt;BR /&gt;                                                                                &lt;BR /&gt;or&lt;BR /&gt;                                                                                &lt;BR /&gt;  ADDRESS0=10.0.35.0&lt;BR /&gt;  NETMASK0=255.255.255.0&lt;BR /&gt;  GATEWAY0=192.168.0.35</description>
      <pubDate>Mon, 19 Mar 2007 16:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964750#M82740</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-03-19T16:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: linux dual nic interfaces configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964751#M82741</link>
      <description>I tried creating a config file:&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/route-eth1&lt;BR /&gt;&lt;BR /&gt;ADDRESS1=10.40.191.0&lt;BR /&gt;NETMASK1=255.255.255.224&lt;BR /&gt;GATEWAY1=10.40.191.65&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------&lt;BR /&gt;I am assuming that the 0 after ADDRESS is&lt;BR /&gt;used by some startup script for eth0 in&lt;BR /&gt;your example. So I change it to 1 for eth1.&lt;BR /&gt;I rebooted and nothing happened.&lt;BR /&gt;&lt;BR /&gt;I can't explain it any better if I do not&lt;BR /&gt;know what it is that I need to explain.&lt;BR /&gt;Other than I have a test network 10.40.191&lt;BR /&gt;with netmask of 255.255.255.224.&lt;BR /&gt;&lt;BR /&gt;Test interface is 10.40.191.51&lt;BR /&gt;Router one hop away is 10.40.191.33&lt;BR /&gt;&lt;BR /&gt;I tried also manually:&lt;BR /&gt;&lt;BR /&gt;route add -net 10.40.191.0 netmask 255.255.255.224 gw 10.40.191.33 metric&lt;BR /&gt; 1 dev eth1</description>
      <pubDate>Mon, 19 Mar 2007 17:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964751#M82741</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2007-03-19T17:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: linux dual nic interfaces configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964752#M82742</link>
      <description>&amp;gt; I am assuming that the 0 after ADDRESS is&lt;BR /&gt;used by some startup script for eth0 in&lt;BR /&gt;your example.&lt;BR /&gt;&lt;BR /&gt;No, it's just the number of the route definition. The first extra route in any route-eth* file must be ADDRESS0/NETMASK0/GATEWAY0, if there is a second one it must be ADDRESS1/NETMASK1/GATEWAY1, etc.&lt;BR /&gt;&lt;BR /&gt;The interface is already specified by the filename, so there is no need to repeat that.&lt;BR /&gt;&lt;BR /&gt;The scripts that add the actual routes will first check whether ADDRESS0 is defined or not. If it is, that route is added and the number is incremented by one. This will be repeated until there are no more route definitions.&lt;BR /&gt;&lt;BR /&gt;If you don't use number 0, the loop will exit immediately.</description>
      <pubDate>Tue, 20 Mar 2007 03:11:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964752#M82742</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-03-20T03:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: linux dual nic interfaces configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964753#M82743</link>
      <description>Okay, I was able to finally figure out how&lt;BR /&gt;to add, manually, the network route to the&lt;BR /&gt;other vlan network 10.40.191.64. I just don't&lt;BR /&gt;understand how to put this in a file for&lt;BR /&gt;bootup.&lt;BR /&gt;&lt;BR /&gt;route add -net 10.40.191.64 netmask 255.255.255.224 gw 10.40.191.33 dev eth1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I looked at /etc/init.d/network system &lt;BR /&gt;startup file and found these lines below, &lt;BR /&gt;but it does not make sense unless I put it &lt;BR /&gt;in as:&lt;BR /&gt;&lt;BR /&gt;any "net 10.40.191.64 netmask 255.255.255.224 gw 10.40.191.33 dev eth1"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;File /etc/init.d/network&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;# Add non interface-specific static-routes.&lt;BR /&gt;        if [ -f /etc/sysconfig/static-routes ]; then&lt;BR /&gt;           grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do&lt;BR /&gt;              /sbin/route add -$args&lt;BR /&gt;           done&lt;BR /&gt;        fi&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;It's Linux 2.6.12-2.3.legacy_FC3.</description>
      <pubDate>Tue, 20 Mar 2007 10:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-dual-nic-interfaces-configuration/m-p/3964753#M82743</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2007-03-20T10:53:13Z</dc:date>
    </item>
  </channel>
</rss>

