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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |