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 18.104.22.168 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:
*13 usable starting at 22.214.171.124 - .255 (or is it 242-244???)
I see under adding range:
Real interface: eth0, eth1 or lo (I’ll stick to eth0)
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.
It’s a dedicated server: epsilon.scubaboard.com and lives in a rack with 11 others. eth0 and eth1 are indeed two separate NICs. Here is the output:
[root@epsilon pjmu]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:35:2A:32
inet addr:192.168.2.70 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fe35:2a32/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1640575 errors:0 dropped:0 overruns:0 frame:0
TX packets:3569 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:392465310 (374.2 MiB) TX bytes:431600 (421.4 KiB)
eth1 Link encap:Ethernet HWaddr 00:30:48:35:2A:33
inet addr:126.96.36.199 Bcast:188.8.131.52 Mask:255.255.255.240
inet6 addr: fe80::230:48ff:fe35:2a33/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1786175 errors:0 dropped:0 overruns:0 frame:0
TX packets:97670 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:587060372 (559.8 MiB) TX bytes:9437712 (9.0 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27897 errors:0 dropped:0 overruns:0 frame:0
TX packets:27897 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2933850 (2.7 MiB) TX bytes:2933850 (2.7 MiB)
Here is my system info:
System hostname epsilon.scubaboard.com (184.108.40.206) 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.
Anyone have an idea here, or am I stuck with using one IP address per device?
Well, can you describe your setup there a bit?
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
[root@epsilon pjmu]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
220.127.116.11 0.0.0.0 255.255.255.240 U 0 0 0 eth0
18.104.22.168 0.0.0.0 255.255.255.240 U 0 0 0 eth1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1
0.0.0.0 22.214.171.124 0.0.0.0 UG 0 0 0 eth1
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
And vi /etc/sysconfig/network-scripts/ifcfg-eth1…
If I delete ifcfg-eth0:0 then service network restart runs just fine.
No one has anything to add to this??? This sucks
I have never received a solution to this…
I am now trying to add the range 126.96.36.199 thru .63 using the Webmin Networking module. It’s not letting me assign it to either NIC.
Just a bit of probably useless help, but a quick search provided this:
Its accurate too, just tried it, look way down at the bottom. Be sure you are adding the addresses to eth1, your “outside” facing interface.