Adding an IP to eth0


 
Thread Tools Search this Thread
Special Forums IP Networking Adding an IP to eth0
# 1  
Old 12-30-2003
Adding an IP to eth0

Hi there guys!

I have a small task that I have to accomplish, but I don't seem to be able to do that.

I have a server that I don't have physical access to, and I mostly control it with webmin. The server is running 2 websites. Both of these websites have their own domains that are linked to the IPs. Both of these IPs are actually the same machine. When I do ifconfig eth0 in the shell I get a table that says there is eth0 and eth0:1. The eth0 has the first IP and eth0:1 has the second one. Now I need to set up a third website on this server. I have gotten an extra IP for that purpose. I will set up Apache for that IP and direct the user to the required htdocs folder. But I can't really understand how can I assign that new IP to my eth0. Can someone plz explain that to me? Thanks In advance!!!!

-Alex
# 2  
Old 12-30-2003
for future reference, please use the search function of this site as this question has been asked and answered before.
see the man pages for the command 'ifconfig'
then see this
thread for your answer.


also it is very important to specify which OS you are using.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Eth0 not running in redhat 6.4

Hi guys, I really need your help with this. My network interface eth0 is up but not running. I checked udev rules and ifcfg-eth0 files to make sure the mac address are the same. It just would not come up. Please please I will really appreciate the help here. Thank you in advance. (3 Replies)
Discussion started by: cjashu
3 Replies

2. IP Networking

iptables On for eth0 and off for other interfaces

Hi all, I am running a CentOS 6.4 box as an IDS and I need to configure one interface as the management interface which will require a firewall. However other ports (in promisc mode without IP) will have to be configured such that IPtables allows all traffic. I need to achieve this by editing... (4 Replies)
Discussion started by: landossa
4 Replies

3. Red Hat

ifconfig eth0 unplumb equivalent

ifconfig eth0 unplumb will perfectly work on solaris , but linux dont support unplumb option ..what is the correct way to remove the interface , forgive me if this topic is already discussed .. i tried this rename /etc/sysconfig/network-scripts/ifcfg-eth0 & restart the network service ..... (4 Replies)
Discussion started by: skamal4u
4 Replies

4. Red Hat

Eth0 Limitations

Hi, I have noticed some performance issues on my RHEL5 server but the memory and CPU utilization on the box is fine. I have a 1G full duplexed eth0 card and I am suspicious that this may be causing the problem. My eth0 settings are as follows: Settings for eth0: Supported ports: ... (12 Replies)
Discussion started by: Duffs22
12 Replies

5. Red Hat

VMBox not Recognizing eth0 on RH.

Hello, I re-installed my laptop and installed a new copy of VMBOX, I created a VM Machine with my Rhel5 and a CEntos copy as well. I am using a laptop HP DV4, I use wireless on the laptop. Usually when I boot up in to either machine I would get eht0 and lo as usual now I just don't get... (4 Replies)
Discussion started by: NelsonC
4 Replies

6. Red Hat

Device eth0 issue

Hi, I have just installed RHEL 5.4 on a BL430c-class server and I am attempting to connect to the network only when I try and start eth0, I get the following error? "Bringing up Interface eth0: hp device eth0 does not seem to be present, delaying initialization." I am using a HP... (18 Replies)
Discussion started by: Duffs22
18 Replies

7. UNIX for Dummies Questions & Answers

how can I find which one is eth0?

Hi, Just installed Centos 5.1 on HP DL360, on this system I have to close to ten nic's. How can I find which one is eth0? When I do " ifconfig -a" I see all of them, but I can't tell which is eth0? Please advice. (2 Replies)
Discussion started by: samnyc
2 Replies

8. Ubuntu

Trying to config eth0 - Ubuntu

Greetings, I have installed a Ubuntu server and attempting put a static IP address on interface ETH0. I edited the /etc/network/interfaces with the following: auto eth0 iface eth0 inet static address 192.168.203.270 gateway 192.168.203.1 netwask 255.255.255.0 network 192.168.0.0... (2 Replies)
Discussion started by: jroberson
2 Replies

9. Red Hat

ifcfg-eth0 and eth1 is N/A

when i finish installed rhel 4.4 to my hp dl585 box, ifcfg-eth0 and ifcfg-eth1 is not available.when i ifconfig -a,i can not see the eth0 and eth1, only lo0 and si0. Unlike to the other server i found eth0 and eth1 files in /etc/sysconfig/network-scripts/. what will i do? (2 Replies)
Discussion started by: kenshinhimura
2 Replies

10. IP Networking

Linux eth0 incative

Hi there, I got a problem with my linux eth0. It worked well, just one day when i boot it, "Failed" to be active. The eth0 is inactive! I tried to use KDE network configuration tool to add the type of the eth card, I can't make it active. It gave me warning of "the eth card can't be... (1 Reply)
Discussion started by: gusla
1 Replies
Login or Register to Ask a Question