Jump to content
OMRON Forums

Add IP range to /etc/hosts


shelinej

Recommended Posts

I was wondering how you guys add the range of IP addresses to the hosts file at boot time. I would like to modify that script to add another range or change the range that is used to fit our network structure.

 

Thanks,

Scott Sheline

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

In the script file /.readonly/etc/rc2.d/S94KillGDM

 

We do

 

for i in {0..254}

do

echo "192.168.0.$i IP192_168_0_$i" >> /etc/hosts

done

 

 

I was wondering how you guys add the range of IP addresses to the hosts file at boot time. I would like to modify that script to add another range or change the range that is used to fit our network structure.

 

Thanks,

Scott Sheline

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...