LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2010, 01:27 AM   #1
fahedakhter
LQ Newbie
 
Registered: Jun 2010
Posts: 8

Rep: Reputation: 0
how to assign an alternate ip address on same lan card


I am running Linux AS4 Update version. I have one lan card and the primary IP-Address is 192.168.0.215 & subnet is 255.255.255.0

Now I want to assign an alternative IP-Address on the same card & the IP I want to assign is 192.168.15.215.

I run the following command from root user
ifconfig eth0:1 192.168.15.215 netmask 255.255.255.0 up

Now when I ping this IP 192.168.15.215 From Windows machine then its reply me & properly reply comming from this Ip. But when I want to access this Ip by \\192.168.15.215 from run prompt then it gave me error.
The specified network name is no longer available..

I already restart the machine & network service but the problem remains same.

Please guide.
 
Old 07-10-2010, 01:57 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
What service are you trying to access from the run command ? Just because you have added a new ip to the card doesn't mean any service is listening on that ip.

Is there now a file for the alias eth0:1 in /etc/sysconfig/network-scripts/ ?

Have you tried running
route add -host 192.168.15.215 dev eth0

man route

Have you tried setting this up using the GUI ?
https://www.redhat.com/docs/manuals/...k-aliases.html

This page has some more information.

Last edited by smoker; 07-10-2010 at 02:09 AM.
 
Old 07-10-2010, 04:52 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Sounds like your web server is not assigned to that ip.
 
  


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
Program to assign globa lIPv6 address and bind() to the previously assigned address. mwnn Linux - Networking 2 10-07-2010 02:29 AM
how to assign an alternate ip address on same lan card fahedakhter Linux - Server 5 07-10-2010 12:46 PM
How to assign IP address to 2nd ethernet card gardenair Linux - Newbie 8 06-22-2010 07:47 AM
how to assign an alternate ip address in bonding interface. cj_cheema Linux - Server 4 07-10-2009 09:15 AM
Cannot Assign an IP address in my LAN IP range amilauduwerella Linux - Hardware 8 05-21-2009 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:23 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