![]() |
s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
2. Plugging Things InDepending on whether you are using a hub or not, your network topology will differ slightly. I am only covering networking with RJ45 cabling (the stuff that looks like phone cables on steroids) and not covering thin coax. With thin coax you can network multiple machines without requiring a hub, but have to be more careful about terminating connections and so on. If you know networking already, these instructions will be largely redundant. 2.1 With a HubIf you have a hub, your network will look like this. Connect the Connect the 2.2 Without a HubIf you do not have a hub, you can still connect one computer to your Linux box, using a crossover cable. Your topology will look like this. Connect the 2.3 With Only One Network CardThis is not a recommended configuration (in this configuration your internal and external networks are on the same physical network, and are therefor theoretically more susceptible to cracking; in reality, the risk is probably very low), but it can be done. Your mileage may vary. The Linux kernel includes support for "IP aliasing", which allows an ethernet
card to service two different IP addresses simultaneously. The stock kernels
shipped with Red Hat and Mandrake include support for IP aliasing by default.
To set up your gateway with only one ethernet card, in all the subsequent code
examples, simply replace In a single-card situation, running a DHCP server is not recommended. Plug all your machines and your cable modem or ADSL box into the hub. Cross your fingers and continue. Next Previous Contents |