I have been trying to add IP addresses to my CentOS 6.2 server running a fresh install of Virtualmin 3.90. Currently it has 192.168.2.70 attached to eth0 and 69.28.64.172 attached to eth1. I have tried to add an IP manually by cp ifcfg-eth0 to ifcfg-eth0:0 and making the proper edits, but when I restart the network service I get a “Bringing up interface eth0: SIOCADDRT: No such process” error. I deleted the ifcfg-eht0:0 record.
So, since I bought Virtualmin to make my life easier, I went to the Webmin => Network Configuration => Network Interfaces => Add a new interface. I got the same message when I restarted the network service. I went ahead and deleted the ifcfg-eth0:0 record it created. and network restarted just fine.
I have a range of IPs that I want to install. I see there is a way to add the entire range, but I don’t understand what it’s really asking me. Here is the range:
IPs 209.208.24.241
NetMask:255.255.255.240 secondary
*13 usable starting at 209.208.24.243 - .255 (or is it 242-244???)
I see under adding range:
Interface description:
Real interface: eth0, eth1 or lo (I’ll stick to eth0)
Range name:
Starting address:
Ending address:
First virtual interface no.:
What values should I be putting in here? Your help is much appreciated.
Well, before attempting to add a range, I’d try to get to a point where you can at least add one. It sounds like something is going on there that’s preventing it from working properly.
Are you using a dedicated server, or a VPS?
Also, what output do you receive if you run the command “/sbin/ifconfig”?
Lastly – what are eth0 and eth1 – are those two separate network cards? It’s somewhat unusual to have both a public IP, and an internal IP, on the same system, I’m just trying to understand the setup you have there.
System
System hostname epsilon.scubaboard.com (69.28.64.172) Operating system CentOS Linux 6.2
Webmin version 1.570 Virtualmin version 3.90 Pro
Theme version 8.2 Time on server 07/Feb/2012 12:19 , Up 3 days, 20 hours, 01 minutes
Kernel and CPU Linux 2.6.32-220.el6.x86_64 on x86_64 CPU load averages 0.03 (1 min) 0.04 (5 mins) 0.00 (15 mins)
Running processes 248 Real memory 15.57 GB total, 966.77 MB used
Virtual memory 17.70 GB total, 0 bytes used
Local disk space 899.46 GB total, 47.26 GB used
Package updates All Virtualmin packages are up to date.
14 updates to system packages are available. Use the Virtualmin Package Updates module to install them selectively.
Which NIC is plugged into the Internet, is it eth0, or eth1?
It almost looks like eth0 is plugged into a LAN port, and eth1 into an Internet port… meaning that you’d want to add the additional IP’s as aliases to eth1.
Also, are these all IP’s your host gave you? The range you’re trying to add seems much different from the public IP that’s already setup.
I’m just trying to understand your setup a bit more so that I can offer useful advice. Something seems a little unusual with your setup, and I’m not quite sure why yet
This server sits in a server cabinet at Atlantic.net. Both NICs are connected to the internet. If I delete eth0:0, I can ssh in from one of the local servers on the local address or from the internet on the public address.
Here are the outputs for vi /etc/sysconfig/network-scripts/ifcfg-eth0