LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-27-2012, 05:43 PM   #1
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Rep: Reputation: 0
Vyatta 2 IPs on ethernet external interface


Hello, i would like a single interface to have 2 ip address going to the same router

this is the configuration

show interfaces
ethernet eth0
address 187.20.10.15/24
address 187.20.10.16/24
ethernet eth1
address 192.168.0.1/24

show system gateway-address
gateway-address 187.20.10.10


but from external public ip i can ping only 187.20.10.15 but can not ping 187.20.10.16 ...... why?

Many Thanks
 
Old 10-27-2012, 07:17 PM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
For one card to answer on two addresses, you'll need to use a "virtual" interface.

You'd configure the two IPs like ...

Code:
ifconfig eth0 187.20.10.15 netmask 255.255.255.0
ifconfig eth0:1 187.20.10.16 netmask 255.255.255.0
(As root)

Getting them configured to come up that way after a reboot depends on your distribution.

Last edited by foodown; 10-27-2012 at 07:19 PM.
 
Old 10-28-2012, 11:55 AM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Could he mean that from a wan based computer he can't nat to the 16 address because of a router or modem not being configured?
 
Old 10-28-2012, 01:31 PM   #4
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Those aren't private IPs ... There should be no reason to do address translation at the gateway. Both IPs should route end-to-end.
 
Old 10-28-2012, 04:31 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Opps, yep. Still the issue of how the connection point is being offered to the public isp.
 
Old 10-29-2012, 04:50 AM   #6
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Original Poster
Rep: Reputation: 0
I have 8 available IPs from ISP, i would like to configure 2 in the same interface
 
Old 10-29-2012, 09:48 AM   #7
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by framacomputer View Post
I have 8 available IPs from ISP, i would like to configure 2 in the same interface
So, when you use the commands in my post, they still will not reply to ICMP?
 
  


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
Allow internal ips block external ips Jz87 Linux - Security 10 07-19-2010 09:42 PM
Receive Ethernet VLAN frame on the native ethernet interface (raw packet socket) scottbiker Linux - Networking 0 07-13-2009 03:49 AM
LXer: Vyatta Announces Creation of Community Vyatta.org website LXer Syndicated Linux News 0 03-04-2008 03:30 PM
Getting things straight: Apache, SSL, Multiple External IPs / Internal IPs robin.com.au Linux - Server 21 10-13-2007 11:39 PM
Adding Multiple Ips to 1 Interface kemplej Slackware 1 12-27-2004 09:18 AM

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

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