Avatar of dahter
dahter
Flag for Turkey asked on

How to configure a 2nd NIC card on Ubuntu Server 10.04

Hello Experts,
I have to configure a Linux system as a web server and my choice is Ubuntu Server v.10.04. I installed it with a single NIC  card (the server is VM and initial setup was with single NIC card) and installed GUI as well. Later on I added a 2nd NIC card, I booted up Ubuntu Server with GUI and when I run ifconfig on the command line I can see both Eth0 (default NIC that I setup during the initial OS setup) and Eth1 however I couldn't figure out how to manually configure the IP settings on eth1. I'm new to Linux and any help will be greatly appreciated.
Linux NetworkingUnix OSLinux

Avatar of undefined
Last Comment
gheist

8/22/2022 - Mon
farzanj

You can first try to issue a temporary IP address using the command

sudo ifconfig eth1 10.0.0.100 netmask 255.255.255.0

Open in new window


I am assuming that it is already maked as eth1.  If it is not recognized, you will have to follow the detailed instructions below.

In order to permanently assign an IP address (persistent after reboot) you have to modify file /etc/network/interfaces. See details below.

Detailed instructions are here:

https://help.ubuntu.com/10.04/serverguide/C/network-configuration.html
dahter

ASKER
I read this article before however /etc/network/interfaces can not be manually modified as the file is read only. I couldn't modify the file.
ASKER CERTIFIED SOLUTION
farzanj

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
dubeyrupesh

use command
mii-tool
check the all ethernet card is poprtly installed
then use system setting and fix the ip in 2nd eth
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
gheist

Is your system still virtualised? I do not see a good purpose of having complexity of two video cards unless you have a good reason to not use VLAN.