When you learn about Redhat Linux, you may encounter IP Address Configuration problems. Here we will introduce how to solve the problem of configuring a large number of IP addresses in Redhat Linux. Here we will share with you.
If you want to configure a large number of IP addresses in Linux, it will be very cumbersome to configure them in the conventional way.
For redhat, you can use the following method:
File:/etc/sysconfig/network-scripts/ifcfg-eth0-range0
Content
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = static
IPADDR_START = 10.0.0.111
IPADDR_END = 10.0.0.199
CLONENUM_START = 0
GATEWAY = 10.0.0.1
NETMASK = 00000000000
NO_ALIASROUTING = yes
File:/etc/sysconfig/network-scripts/ifcfg-eth0-range1
Content
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = static
IPADDR_START = 10.0.0.200
IPADDR_END = 10.0.0.254
CLONENUM_START = 5
GATEWAY = 10.0.0.1
NETMASK = 00000000000
NO_ALIASROUTING = yes
Then the service network restart
10.0.111-254 is configured to eth0.
The preceding section describes how to solve the problem of configuring a large number of IP addresses in Redhat Linux. It is still very practical.
- Full explanation of USB flash disk mounting in linux File System
- Explanation of linux monitoring technology in the treasure chest
- Linux Server hacked knowledge points
- Explanation of how to build a linux FTP Server
- One-stop service: full introduction to linux FTP server security