LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-14-2008, 01:55 AM   #1
varunkant
Member
 
Registered: Jun 2008
Location: shimla
Distribution: redhat linux,Ubuntu 8.10
Posts: 41

Rep: Reputation: 15
Two different ip address in ubuntu 8.04


In windows xp we can give two different ip addresses to a machine, is this possible in ubuntu 8.04?
Thanks
 
Old 11-14-2008, 03:58 AM   #2
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
Could you explain a bit more please? Do you have two network cards in your machine?
 
Old 11-14-2008, 10:07 AM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
You can have almost as many as you could imagine and certainly more than two even with a single nic. With a single nic you need to use aliases or vlans.

alias example
ifconfig eth0:ip2 172.16.16.4 netmask 255.255.255.0

vlan example
modprobe 8021q
vconfig add eth0 10
ifconfig eth0.10 172.16.16.4 netmask 255.255.255.0
 
Old 11-15-2008, 12:55 AM   #4
varunkant
Member
 
Registered: Jun 2008
Location: shimla
Distribution: redhat linux,Ubuntu 8.10
Posts: 41

Original Poster
Rep: Reputation: 15
Thanx

Yes, 2 ip address with in a single nic.

Thanx estabroo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu: How to change MAC address with ifconfig? CJS Linux - Networking 1 06-06-2008 07:13 AM
Transferring mail and address from Ubuntu to XP Justin Time Linux - General 1 04-20-2008 11:59 PM
address line a20, does ubuntu live cd use this? rocket777 Ubuntu 2 06-26-2007 05:11 AM
Ubuntu 7.04 Wireless Router Visible but No IP Address bobby_hawk Ubuntu 4 06-20-2007 12:01 AM
could not find ubuntu address MarxzWolf Ubuntu 1 10-18-2005 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration