On Sunday 21 September 2003 12:48, Peter McCracken wrote:
> I'm looking for some tips to start off creating a specific home
> network. My ISP gives me two IPs, I'd like to use one of them for my
> desktop, and one for a wireless router (I don't want to put my desktop
> behind the router because I don't want to compete with my roommate for
> forwarding ports). However, my desktop has two network cards, and I'd
> like to also attach my desktop to the router (as net.eth1). Then, I'd
> like to configure it so that my desktop knows to use eth1 for any
> 192.168.x.x IP, and eth0 for all other internet usage.
>
> My problem is that I really have no idea what software I should use on
> my computer to configure it in this fashion. Can someone give me a hint
> on where to start learning?
It is much easier than you think.
/etc/conf.d/net
iface_eth0="123.456.789.123 broadcast 123.456.789.255 netmask 255.255.255.0"
iface_eth1="192.168.123.456 broadcast 192.168.123.255 netmask 255.255.255.0"
gateway="eth0/inter.net.gate.way"
Change the above according to the IP config you want, copy /etc/init.d/
net.eth0 /etc/init.d/net.eth1 and your done.
For the specifics:
The first address should be the ip you want to assign to the device.
The netmask is used to specify what logical network you are part of.
The broadcast address is the logical NOT of the netmask OR'd with the ip
address.
An entry is automatically added into the routing table via each device for the
network that device belongs to (ip address AND'd with netmask)
Although the 192.168.x.x range is a class B subnet, it has been set aside for
class C subnets hence a netmask of 255.255.255.0.
Jason
--
[EMAIL PROTECTED] mailing list