?
Solved

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

Posted on 2012-03-14
5
Medium Priority
?
637 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:dahter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 37719968
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
0
 

Author Comment

by:dahter
ID: 37720062
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.
0
 
LVL 31

Accepted Solution

by:
farzanj earned 2000 total points
ID: 37720084
You can sure modify it.  Which editor did you use?  You have to use it as root.

You can do

sudo su -
vi /etc/network/interfaces
or
gedit /etc/network/interfaces

or whatever editor you are using but you have to be root.

If it still gives you problem in modifying it, you can allow root to modify it as

chmod u+w /etc/network/interfaces

No harm in allowing root to modify it.
0
 

Expert Comment

by:dubeyrupesh
ID: 37723383
use command
mii-tool
check the all ethernet card is poprtly installed
then use system setting and fix the ip in 2nd eth
0
 
LVL 62

Expert Comment

by:gheist
ID: 37724267
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.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question