Operating System - Linux
1827807 Members
2673 Online
109969 Solutions
New Discussion

How can I configure the second network on my lan card?

 
dtk
New Member

How can I configure the second network on my lan card?

I have already assigne an IP adress for my lan card and I would like to assigne the second network for it.
Can anyone tell me how to do ?


dtk
4 REPLIES 4
benoit Bruckert
Honored Contributor

Re: How can I configure the second network on my lan card?

Hi,
ifconfig eth0:1
should give you the solution !
But it only assigns a second IP address on your network card.
If you want to use only 1 network card to connect 2 networks, then it's possible through vlan , but it means specific kernel , you need also on the other side a vlan capability on your switch, and it works only for some cards (or you will have to patch yourself some network cards drivers). I did it and it works...
hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
dtk
New Member

Re: How can I configure the second network on my lan card?

Thanks for your answers but when I try

ifconfig lan0:1 172.20.10.41 255.255.0.0

I have the following messages :

ifconfig : no such interface

I'm running HP unix 10.20

Do you think that I have something wrong ?
dtk
Bill Thorsteinson
Honored Contributor

Re: How can I configure the second network on my lan card?

You are on the wrong list. Try the HP-UX system administration list. The configuration utilitites are completely different.

Search for multi-home.
Omololu Shobayo
Frequent Advisor

Re: How can I configure the second network on my lan card?

You need to know the lan card you are using. You might be using lan1 instead of lan0.

do

ifconfig lan0

and

ifconfig lan1 to know which interface would give you your actual ipaddress.

Then execcute the command again.

The command is however a tempotrary one. Whenever you reboot the server, it goes.

You actually need to edit the file /etc/rc.config.d/netconf to achieve what is permanent. or better still use sam.