Skip to contentSkip to conversation

How to config ip in 2nd lan card in Linux pc and config ip masq?

LARTC Md.Ahsanul Haque Chowdhury 2 participants 2 messages Dec 6, 2003

lore
Share & tools
lore
#0 lore raw

Dear Sir,

I have install 2 lan card (Micronet Lan Card) in Linux pc, in 1st lan card I will use public ip ( 203.x.x.x) and 2nd lan card I will use private ip (192.168.1.1). But after install the Linux 7.2 in /etc/sysconfig/network-
scripts/ only showing ifcfg-eth0 no interface is showing like ifcfg-eth1.

My questions are how to enable or config 2nd lan card and config ip in 2nd lan card.?
& how to config ip masq to route to get Internet in local workstations.?

Pls help me to solve these problem.

Thanks & Best regards.
__________________________
Md. Ahsanul Haque Chowdhury.
E-mail:[email protected] , [email protected] Web:http://www.neksus.com
Web:http://www.link3.net
Date:2003-12-06.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Hi,
--- "Md.Ahsanul Haque Chowdhury" <[email protected]>

Quoted 1 line · wrote:

(192.168.1.1). But after install the Linux 7.2 in

how did you get a copy of Linux 7.2? ;)
i'll safely assume thats RHL 7.2 ...

Quoted 3 lines

/etc/sysconfig/network-
scripts/ only showing ifcfg-eth0 no interface is
showing like ifcfg-eth1.

'netconfig' would be your best bet. Also, check dmesg, to see that you card has been detected. If the card is detected, you can copy ifcfg-eth0 to ifcfg-eth1 and make the appropriate changes.

Quoted 2 lines

& how to config ip masq to route to get Internet in local workstations.?

...just use iptables to masq. your internal subnet; man iptables.

suraj.

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/