Notepad:Chain of IP addresses: Difference between revisions
From Amar
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
create a chain of IP addresses | create a chain of IP addresses | ||
1. Create a file | 1. Create a file | ||
<code> | |||
<nowiki> | |||
<pre> | |||
/etc/sysconfig/network-scripts/ifcfg-eth0-range0 | /etc/sysconfig/network-scripts/ifcfg-eth0-range0 | ||
</pre> | |||
</nowiki> | |||
</code> | |||
2. In this file, put | 2. In this file, put | ||
<code> | <code> | ||
<nowiki>DEVICE=eth0-range0 | <nowiki> | ||
<pre> | |||
DEVICE=eth0-range0 | |||
BOOTPROTO=static | BOOTPROTO=static | ||
IPADDR_START=192.168.1.1 | IPADDR_START=192.168.1.1 | ||
Line 13: | Line 20: | ||
GATEWAY=192.168.1.1 | GATEWAY=192.168.1.1 | ||
CLONENUM_START=1 | CLONENUM_START=1 | ||
</pre> | |||
</nowiki> | </nowiki> | ||
</code> | </code> |
Revision as of 05:03, 20 February 2007
create a chain of IP addresses
1. Create a file
<pre>
/etc/sysconfig/network-scripts/ifcfg-eth0-range0
</pre>
2. In this file, put
<pre>
DEVICE=eth0-range0
BOOTPROTO=static
IPADDR_START=192.168.1.1
IPADDR_END=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
CLONENUM_START=1
</pre>