2 IPs for a NIC Card ?

This is a discussion on 2 IPs for a NIC Card ? within the Linux Security forums, part of the System Security and Security Related category; Hi, I want to know how to add two IPs for a NIC Card ? I want to add a Pulbic ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-01-2003
Benson Lei
 
Posts: n/a
Default 2 IPs for a NIC Card ?

Hi,

I want to know how to add two IPs for a NIC Card ?

I want to add a Pulbic IP and a Private IP for the same NIC Card,
how can I achieve this task if I can work it out in command prompt only ( no
X windows ).


Thank you


Reply With Quote
  #2 (permalink)  
Old 11-01-2003
Volker Birk
 
Posts: n/a
Default Re: 2 IPs for a NIC Card ?

Benson Lei <greenb@netvigator.com> wrote:
> I want to know how to add two IPs for a NIC Card ?


For example:

# ifconfig eth1 192.168.1.42 up
# ifconfig eth1:1 10.23.42.23 up

$ man ifconfig

VB.
--
X-Pie Software GmbH
Postfach 1540, 88334 Bad Waldsee
Phone +49-7524-996806 Fax +49-7524-996807
mailto:vb@x-pie.de http://www.x-pie.de
Reply With Quote
  #3 (permalink)  
Old 11-03-2003
Benson Lei
 
Posts: n/a
Default Re: 2 IPs for a NIC Card ?


What else of the configuration if I have two gatways ?

like the LAN gateway : 192.168.1.253
the WAN gateway: 10.23.42.253


Thank you


"Volker Birk" <bumens@dingens.org>
???????:bo15un$np2$00$3@news.t-online.com...
> Benson Lei <greenb@netvigator.com> wrote:
> > I want to know how to add two IPs for a NIC Card ?

>
> For example:
>
> # ifconfig eth1 192.168.1.42 up
> # ifconfig eth1:1 10.23.42.23 up
>
> $ man ifconfig
>
> VB.
> --
> X-Pie Software GmbH
> Postfach 1540, 88334 Bad Waldsee
> Phone +49-7524-996806 Fax +49-7524-996807
> mailto:vb@x-pie.de http://www.x-pie.de



Reply With Quote
  #4 (permalink)  
Old 11-03-2003
erik
 
Posts: n/a
Default Re: 2 IPs for a NIC Card ?

Benson Lei wrote:

>
> What else of the configuration if I have two gatways ?
>
> like the LAN gateway : 192.168.1.253
> the WAN gateway: 10.23.42.253
>
>
> Thank you
>


I wonder why the term 'default gateway' was invented.

EJ
--
Remove the obvious part (including the dot) for my email address
http://www.vanwesten.net for OpenBSD ipf and pf examples
Reply With Quote
  #5 (permalink)  
Old 11-03-2003
Volker Birk
 
Posts: n/a
Default Re: 2 IPs for a NIC Card ?

Benson Lei <greenb@netvigator.com> wrote:
> What else of the configuration if I have two gatways ?
> like the LAN gateway : 192.168.1.253
> the WAN gateway: 10.23.42.253


Just setup two routes.

$ man route

VB.
--
X-Pie Software GmbH
Postfach 1540, 88334 Bad Waldsee
Phone +49-7524-996806 Fax +49-7524-996807
mailto:vb@x-pie.de http://www.x-pie.de
Reply With Quote
  #6 (permalink)  
Old 11-06-2003
Dmitry Frantskevich
 
Posts: n/a
Default Re: 2 IPs for a NIC Card ?

type:
ifconfig eth0 xxx.xxx.xxx.xxx
ifconfig eth0:1 xxx.xxx.xxx.yyy - it's alias

close by firewall inside IP

Finish.

Benson Lei wrote:

> Hi,
>
> I want to know how to add two IPs for a NIC Card ?
>
> I want to add a Pulbic IP and a Private IP for the same NIC Card,
> how can I achieve this task if I can work it out in command prompt only (
> no X windows ).
>
>
> Thank you


--
Dmitry Frantskevich
F.D.V.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0