<?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: multiple IPs in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/multiple-ips/m-p/2955190#M76901</link>
    <description>You can define multiple "alias" interfaces on an existing interface.  The syntax is:&lt;BR /&gt;&lt;BR /&gt;ifconfig if:# &lt;IP addr=""&gt; netmask &lt;MASK&gt; up&lt;BR /&gt;&lt;BR /&gt;if is your network interface, such as eth0&lt;BR /&gt;# is the number opf the alias interface.&lt;BR /&gt;&lt;BR /&gt;For example, on my machine:&lt;BR /&gt;&lt;BR /&gt;# ifconfig -a&lt;BR /&gt;eth0      Link encap:Ethernet  HWaddr 00:B0:D0:D0:E8:47&lt;BR /&gt;          inet addr:10.241.16.48  Bcast:10.241.23.255  Mask:255.255.248.0&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:79136822 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:53045536 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:100&lt;BR /&gt;          RX bytes:3511096708 (3348.4 Mb)  TX bytes:385305413 (367.4 Mb)&lt;BR /&gt;          Interrupt:11 Base address:0xc000&lt;BR /&gt;&lt;BR /&gt;lo        Link encap:Local Loopback&lt;BR /&gt;          inet addr:127.0.0.1  Mask:255.0.0.0&lt;BR /&gt;          UP LOOPBACK RUNNING  MTU:16436  Metric:1&lt;BR /&gt;          RX packets:1344229 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:1344229 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:0&lt;BR /&gt;          RX bytes:288508286 (275.1 Mb)  TX bytes:288508286 (275.1 Mb)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I then perform (as root):&lt;BR /&gt;&lt;BR /&gt;# ifconfig eth0:0 10.241.16.43 -netmask 255.255.248.0 up&lt;BR /&gt;&lt;BR /&gt;Now I get:&lt;BR /&gt;&lt;BR /&gt;@ifconfig -a&lt;BR /&gt;eth0      Link encap:Ethernet  HWaddr 00:B0:D0:D0:E8:47&lt;BR /&gt;          inet addr:10.241.16.48  Bcast:10.241.23.255  Mask:255.255.248.0&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:79138493 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:53045921 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:100&lt;BR /&gt;          RX bytes:3511592780 (3348.9 Mb)  TX bytes:385379371 (367.5 Mb)&lt;BR /&gt;          Interrupt:11 Base address:0xc000&lt;BR /&gt;&lt;BR /&gt;eth0:0    Link encap:Ethernet  HWaddr 00:B0:D0:D0:E8:47&lt;BR /&gt;          inet addr:10.241.16.43  Bcast:10.255.255.255  Mask:255.255.248.0&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          Interrupt:11 Base address:0xc000&lt;BR /&gt;&lt;BR /&gt;lo        Link encap:Local Loopback&lt;BR /&gt;          inet addr:127.0.0.1  Mask:255.0.0.0&lt;BR /&gt;          UP LOOPBACK RUNNING  MTU:16436  Metric:1&lt;BR /&gt;          RX packets:1345176 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:1345176 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:0&lt;BR /&gt;          RX bytes:288605666 (275.2 Mb)  TX bytes:288605666 (275.2 Mb)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can assign aliases to both statically- and dhcp-defined interfaces.&lt;BR /&gt;&lt;BR /&gt;You can use /usr/sbin/neat (also known as redhat-config-network) to assign an alias to an existing interface. It provides a GUI for doing the above, and write the results to /etc/sysconfig/network-scripts/ifcfg-eth0:0, so your alias interface will be established every time you reboot.&lt;/MASK&gt;&lt;/IP&gt;</description>
    <pubDate>Sat, 19 Apr 2003 15:44:06 GMT</pubDate>
    <dc:creator>Bill Douglass</dc:creator>
    <dc:date>2003-04-19T15:44:06Z</dc:date>
    <item>
      <title>multiple IPs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-ips/m-p/2955188#M76899</link>
      <description>hello&lt;BR /&gt;&lt;BR /&gt;i want to enter multiple IPs on my RH 8.0 box. how can i do this.</description>
      <pubDate>Sat, 19 Apr 2003 09:50:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-ips/m-p/2955188#M76899</guid>
      <dc:creator>Imran Hussain</dc:creator>
      <dc:date>2003-04-19T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: multiple IPs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-ips/m-p/2955189#M76900</link>
      <description>2 ip's will require 2 NIC's or use 'ip alias' and have one static and one dynamic ip:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/ref-guide/s1-networkscripts-interfaces.html" target="_blank"&gt;http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/ref-guide/s1-networkscripts-interfaces.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"...For example, a ifcfg-eth0:0 file could be configured to specify DEVICE=eth0:0 and a static IP address of 10.0.0.2, serving as an alias of an Ethernet interface already configured to receive its IP information via DHCP in ifcfg-eth0. At that point, the eth0 device is bound to a dynamic IP address, but it can always be referred to on that system via the fixed 10.0.0.2 IP address....</description>
      <pubDate>Sat, 19 Apr 2003 11:04:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-ips/m-p/2955189#M76900</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-04-19T11:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: multiple IPs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-ips/m-p/2955190#M76901</link>
      <description>You can define multiple "alias" interfaces on an existing interface.  The syntax is:&lt;BR /&gt;&lt;BR /&gt;ifconfig if:# &lt;IP addr=""&gt; netmask &lt;MASK&gt; up&lt;BR /&gt;&lt;BR /&gt;if is your network interface, such as eth0&lt;BR /&gt;# is the number opf the alias interface.&lt;BR /&gt;&lt;BR /&gt;For example, on my machine:&lt;BR /&gt;&lt;BR /&gt;# ifconfig -a&lt;BR /&gt;eth0      Link encap:Ethernet  HWaddr 00:B0:D0:D0:E8:47&lt;BR /&gt;          inet addr:10.241.16.48  Bcast:10.241.23.255  Mask:255.255.248.0&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:79136822 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:53045536 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:100&lt;BR /&gt;          RX bytes:3511096708 (3348.4 Mb)  TX bytes:385305413 (367.4 Mb)&lt;BR /&gt;          Interrupt:11 Base address:0xc000&lt;BR /&gt;&lt;BR /&gt;lo        Link encap:Local Loopback&lt;BR /&gt;          inet addr:127.0.0.1  Mask:255.0.0.0&lt;BR /&gt;          UP LOOPBACK RUNNING  MTU:16436  Metric:1&lt;BR /&gt;          RX packets:1344229 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:1344229 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:0&lt;BR /&gt;          RX bytes:288508286 (275.1 Mb)  TX bytes:288508286 (275.1 Mb)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I then perform (as root):&lt;BR /&gt;&lt;BR /&gt;# ifconfig eth0:0 10.241.16.43 -netmask 255.255.248.0 up&lt;BR /&gt;&lt;BR /&gt;Now I get:&lt;BR /&gt;&lt;BR /&gt;@ifconfig -a&lt;BR /&gt;eth0      Link encap:Ethernet  HWaddr 00:B0:D0:D0:E8:47&lt;BR /&gt;          inet addr:10.241.16.48  Bcast:10.241.23.255  Mask:255.255.248.0&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          RX packets:79138493 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:53045921 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:100&lt;BR /&gt;          RX bytes:3511592780 (3348.9 Mb)  TX bytes:385379371 (367.5 Mb)&lt;BR /&gt;          Interrupt:11 Base address:0xc000&lt;BR /&gt;&lt;BR /&gt;eth0:0    Link encap:Ethernet  HWaddr 00:B0:D0:D0:E8:47&lt;BR /&gt;          inet addr:10.241.16.43  Bcast:10.255.255.255  Mask:255.255.248.0&lt;BR /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;BR /&gt;          Interrupt:11 Base address:0xc000&lt;BR /&gt;&lt;BR /&gt;lo        Link encap:Local Loopback&lt;BR /&gt;          inet addr:127.0.0.1  Mask:255.0.0.0&lt;BR /&gt;          UP LOOPBACK RUNNING  MTU:16436  Metric:1&lt;BR /&gt;          RX packets:1345176 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;          TX packets:1345176 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;          collisions:0 txqueuelen:0&lt;BR /&gt;          RX bytes:288605666 (275.2 Mb)  TX bytes:288605666 (275.2 Mb)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can assign aliases to both statically- and dhcp-defined interfaces.&lt;BR /&gt;&lt;BR /&gt;You can use /usr/sbin/neat (also known as redhat-config-network) to assign an alias to an existing interface. It provides a GUI for doing the above, and write the results to /etc/sysconfig/network-scripts/ifcfg-eth0:0, so your alias interface will be established every time you reboot.&lt;/MASK&gt;&lt;/IP&gt;</description>
      <pubDate>Sat, 19 Apr 2003 15:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-ips/m-p/2955190#M76901</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-04-19T15:44:06Z</dc:date>
    </item>
  </channel>
</rss>

