vizskywalker
Dec 1 2006, 05:47 AM
I have a Linux box with three ethernet ports (NIC cards). I could easily give it more. I have one ethernet connection to the outside world at college. College's ethernet policy is amazing, as they give us IP addresses that in theory are fully routable from the outside world (haven't had a chance to try it out). Unfortunately, I have another computer, my primary laptop, that is connected to the internet, and no switch or router. I was wondering how to use my Linux box as either a switch or router. What I want to do is the following: 1) Connect the Linux box to the room ethernet port to give it internet and network access. 2) Connect my other computers to the other NIC cards so they also have access to the internet and network. Since I can request an IP for each of my computers, and the IPs are fully routable, I was also wondering if it would be possible to somehow give each of my computers their own IP that the college gives me and maintain that outside access via IP. Any help would be appreciated. I think I explained this pretty well, but if you have questions, please ask. ~Viz
Reply
yordan
Dec 2 2006, 05:56 PM
Each "slave" computers will have fixed IP, I agree. Each one of these computers must have : . the primary one as default gateway when you configure the slave NIC's properties. . they must also have a valid DNS. Look at your primary computer the address of the DNS, and eventually the address of the Internet proxy. Then, this should work.
Reply
vizskywalker
Dec 2 2006, 08:11 PM
Okay, I think I have that set up, but let me give you the current configuration to be sure, because it isn't working. Linux Box: eth0: the card the other computer plugs into active ip: 192.168.1.1 subnetmask: 255.255.248.0 default gateway: 134.176.60.121 eth2: the card that connects to the internet active ip: 134.176.60.121 subnetmask: 255.255.248.0 default gateway: 134.173.63.200 DNS for the machine Primary: 134.173.53.8 Secondary: 134.173.254.23 DNS Search PAth: localdomain Windows Box (the remote machine) Local Area Connection - the ethernet not wireless ip: 134.173.60.56 subnetmask: 255.255.248.0 default gateway: 192.168.1.1 Primary DNS: 134.173.53.8 Secondary DNS: 134.173.254.23 ~Viz
Reply
yordan
Dec 2 2006, 09:35 PM
This is false : QUOTE Windows Box (the remote machine) Local Area Connection - the ethernet not wireless ip: 134.173.60.56 subnetmask: 255.255.248.0 default gateway: 192.168.1.1 ip of this machine must be 192.168.1.XXX (XX=5 or 6 or what you want). This IP must be on the same network (192.168.1.___ as the computer at the other hand, which is 192.168.1.1. Hope his thelped Yordan
Reply
Mark420
Dec 2 2006, 10:10 PM
Or maybe the best thign is to use DNS from the Linux box? Let the windows pc pick up the settings via DNS..That way if you need to add another pc you will have lots of spare IPs to play with. Im going out again just now like last night when we got talking about this..best thing to do is use google to search for setting up linux DNS and firewall Its fairly easy to do you just need to set a range of IPs like 192.168.1.5 to 192.168.1.255 and now you can have 200 devices connected if you want. Also like I mentioned last night..you can make a really good firewall for the inside network with just a few lines in your config file..hopefully you can google up a tutorual..if not Il get one for you tomorrow.. Also you will need NAT and port forwarding to allow programs like ftp smtp torrents..games etc specific routes tho the firewall and through the NAT to route directly to any inside IPs ports.. Something like this..134.176.60.121:21 to 192.168.2.5:21 that would be ftp..note i put a static IP in there? you can do it with DNS IP's too but I forget how to right now..ill post it up tomorrow when i get home.. Ive made a great firewall/switch/router from an old 486 with 64mb ram and a floppy drive and no hard drive before...once it was setup it just booted from the floppy..loaded the ipchains..dns..routign tables etc..and was good to go!! no monitor no kb no mouse on it..it just sat in the closet and was the best router you could ever have  ) Hope this helps a little Marky;)
Reply
vizskywalker
Dec 2 2006, 10:22 PM
Okay, one key issue, the IPs I am given by school are fully routable to the outside world, and I would like to maintain that. So the IPs, if I can set this up properly are restricted. I also need to be able to use this Linux machine as a computer. Before I go looking for DNS tutorials, could you provide some more details on how the DNS setup and NAT work. ~Viz
Reply
yordan
Dec 2 2006, 10:37 PM
Simply use my tricks if you want to use your own IP addresses, you don't need DNS nor nat nor firewall. Firewall will be an axtra bonus for the next step, when everything will be working fine.
Reply
vizskywalker
Dec 2 2006, 11:22 PM
@yordan The current configuration is subnet mask on both changed to 255.255.255.0 ip of windows is 192.168.1.101 no other changes. Still nothing happening Neither computer is reading a link between the two. Do I need to have a dhcp server or something running, and if so, how. ~Viz
Reply
yordan
Dec 3 2006, 07:43 PM
QUOTE Neither computer is reading a link between the two. Ach ! this means that you have a hardware problem now! A computer should see a link as soon as you plug a cable. If no computer sees a link, that means that you have a cable problem. If you have a rather old PC, you need a true crossed Ethernet cable, which is not the case with the modern Ethernet adapters. Try to borrow a crossed cable, and you should see the lamps on the adapters on as soon as you plug the cable. If no lamp come up or Windows sees no network, this means that your cable is bad, or your adapter has a problem.
Reply
vizskywalker
Dec 5 2006, 10:43 PM
I know the cable isn't bad, I'm working on checking the adapter, and it may need a crossover cable, but I highly doubt it. Looking into getting one though. Will I need to bridge the adapter that connects to the internet with the other connections, and if so how? And yordan, If I have specific IP addresses that are fully routable to the rest of the world, I'm not sure I understand how your method of assigning an IP address to the adapter on the Linux box and using that as the default gateway for the other connections will accomplish this. ~Viz
Reply
Latest Entries
borlafu
Dec 7 2006, 09:32 PM
You just have to do 2 things: 1. Give each NIC an IP address ( ifconfig). 2. Configure the router's (Linux box) routing tables ( route) Use the manual ( man) if you need help with those commands. About the IP assingment, you have two options: use 5 IP addresses form your college (one for each NIC), or use 1 IP address from the college in the NIC that connects to their network and 4 private network IP addresses for the other NICs (for example 192.168.1.0/24). In the second case, you sould configure a NAT on the Linux box so those addresses could be translated when connecting to the outside.
Reply
yordan
Dec 6 2006, 07:51 PM
just verify that the routed service is installed and started on you linux box. It's usually installed but not started on most of Linux distro's. The routed daemon is in charge of routing the packets entering a NIC card to the network at the other NIC card.
Reply
vizskywalker
Dec 6 2006, 07:09 PM
So right now I think the issue is that I need a crossover cable, so I'm trying to locate one of those. But I still don't understand how the Linux box will understand to pass internet data from the card connected to the internet to the card connected to my Windows box or pass requests from the card connected to the Windows box on through the card connected to the net. ~Viz
Reply
yordan
Dec 6 2006, 02:18 PM
By the way, do not forget to follow the steps described in this nice tutorial : http://www.astahost.com/tutorial-pc-pc-hom...ing-t14018.html
Reply
yordan
Dec 6 2006, 10:39 AM
OK, so, now, on your main PC, you have : 1) one network adapter fully working, connected to the internet. 2) one spare network adapter, to be connected to the second pc. Now, On the main PC, on the spare network adapter, configure the following IP address : 192.168.1.2 On the second PC, configure the IP address 192.168.1.3 Put a crossed cable between the two adapters you just configured. From each PC, ping 192.168.1.2 and 192.168.1.3 Both addresses must ping from each PC. When this step is achieved, the physical link is working, we will see the rest firthermore.
Reply
Similar Topics
Keywords : linux, create, switch, multiple, ethernet, ports
- How To Setup An Vpn
How to configure Open VPN on Ubuntu linux (1)
Tracing Broadcast Storms
A poorly managed or configured layer 2 switch may affect network laten (1) In some cases, a single layer 2 switching device configured improperly can cause serious
connectivity problems, especially on a large network. Problems of this nature behave similar to
Denial of Service (DoS) attacks but are slightly easier to track. Most intranets serve a central
location where other internal networks are connected. Whether it is a remote off-site location or
only accessible by taking an underground railway, it's usually the best place to start
disconnecting backbones to find out which physical subnet is causing the problem. Broadcast storms
are ge....
Linux Wireless Problem
Ubuntu (Wubi) fails to see the wireless card (3) QUOTE Specs: Compaq Presario C304 Laptop with Broadcom 802.11g Wireless Network Adapter PCI
Factory installed that works well running Windows XP Home, but I installed a copy of Ubuntu using
Wubi and Linux does not connect via the wireless smile.gif I am new to Linux and need some
assistance diagnosing the problem. I have read up a little on the Wubi/Ubuntu/Networking and
Wireless Forum and am totally confused about some of the issues which may be causing the problem.
Where do I start? I have a copy of Everest on the Windows Boot side, so if you require any informati....
How To Keep The Internet Out From A Network ?
Using Dlink Giga lan switch, DSL ... see picture (9) So..in the picture below you can see the schematic I made. The internet enters in the first PC thru
the DSL box , and I wanna connect the internet PC with the other PC's with a giga lan speed. For
that I think I will need a second Lan card because the internet PC only has one lan port. Next I use
the Dlink 8 ports Switch. But I don't want the internet go from the internet PC thru the Dlink
and to the other PC's. Because I don't wanna put firewall and stuff on the other PC's.
But maybe with this setup, the internet will just naturally stop at the firs....
Can't Connect To Internet In Linux
Driver problem? (7) I am new to linux and just installed Kubuntu. I have windows XP on my master primary hard drive and
Kubuntu is installed on my slave drive. Everything seems to work great except that I cannot connect
to the internet when I boot into Kubuntu (I also tried Ubuntu). I am thinking maybe it has something
to do with ethernet adapter driver. I can connect just fine in windows, so I know that the actual
hardware isn't messed up. Windows uses the driver for Realtek RTL8139/810x Family Ethernet NIC.
I looked through google and help forum threads and it seems others have h....
What Replaces .netrc When Using Windows Xp ?
In Unix and in Linux, there is a network configuration file named .net (4) When I am on a Unix system or on a Linux system, I use a configuration file named ".netrc", which
stores my most used ftp settings. Is there an equivalent for ftp under Windows XP ? I tried
testing/guessing, I failed, it's not net.rc nor .netrc. It's not horribly necessary, but I
would like to know what replaces .netrc on a Windows machine.....
Question: Multiple NICs Multiple IPs - Possible ?
(13) Question for the networking gurus here... Supposing I want to stack in a bunch of ethernet cards
into the same server / workstation: Can I assign a different IP address to each card - so that
it's possible to make the same machine a part of different subnets ? That's my main
objective, i.e. make the machine be hooked simultaneously to different subnets. What is the maximum
number of Ethernet cards I can stack in (apart from physical system limitations - read FREE SLOTs)
Can anyone point me to some good resources on this? Thanks a tonne as always /smile.gif....
Wireless Network, Need A Linux Guru
(2) Im trying to get my Belkin F5D7050 wireless USB dongle to work, but linux doesnt seem to see it Ive
installed the drivers using ndiswrapper, but it just says hardware not found. Any help would be
great. ....
Opening Several Ports On Linksys Router
(1) How can I have my Linksys open more than one port 80? I have one Apache server running on a computer
with two NIC cards. I also have a ColdFusion development server running on port 8500 and uses a
different internal IP. Whenever I try to open port 80 for another IP, I get a "Port overlap"
message. Is there a way to wildcard requests for all IPs? Thanks! F....
How To Share Inernet Connection Over Switch
3com 24-port switch (2) was at a rummage sale a while back and picked up some of these 3com 24-port switches for about a
buck a piece....they are only 10mb but they work fantasticly....i want to share inernet connection
over them....was at a lan party recently and they used the same thing and the guy told me just to
run the inernet connection over a crossover into the 1st port on the hub....then it will automaticly
be shared....is that how...cause some other people are saying to just bring the internet in on the
uplink (either port 1 or 24 - not sure) and think it will be automaticly shared........
Linksys Wmp54gs And Linux
Fedora Core 3 (2) I have Linux Fedora Core 3 dual booted with Windows XP Pro. I recently purchased a Wireless card
for the computer, an old 715 MHz Celeron made by Linksys, the WMP54GS. I have the matching wireless
router, and everything works fine in Windows. However, Fedora does not recognize my wireless card.
I have attempted to find info from the linksys site, but it is currently down. Being a novice to
Linux, I was wondering if anyone here could help me? ~Viz....
Networking With Linux & Windows
(4) Could i run Linux operating system on my server and have my other 2 computers running on windows xp
professional, as i have heard that it can be a right pain in the groin /laugh.gif' border='0'
style='vertical-align:middle' alt='laugh.gif' /> to network together. So would it be alright to do
this or will it stop my internet.....
Wireless Networking And Switch
How To Add To My Network (7) Hey i was just wondering is it possible, since i have two computer (looking at buying my own, the
other two are family owned) and a ps2 all wanting to be connected to the net, i bought a switch. It
is a 5 pot switch and i have one port spare. See my adsl modem is connected to the switch and then
my two computers and ps2 connect into that becuase they are in the in the same room. Ok now to my
question i was just wondering since, i want to have my own computer in my room and able to connect
to the internet and network ( i live in a two story house, my room is upstairs so i....
Email Client Supporting Multiple Mailboxes
With password protection (10) Hi all, Does anyone know of any such email client that can create multiple virtual mailboxes
under ONE Windows Login - and thus cater to many different users. What I'm looking for is some
client that can handle mails the way outllook does based on separate account logins on windows -
but it should be able to perform the same without having to log out and log back in as a different
user. Instead the client itself should have options to set up multiple password protected accounts
that will take you to different mailboxes for every user. Is there any such clien....
Installation: Local Caching Dns In Linux
Any Linux Gurus out there ??? (3) Hi all, BIND is already installed on my server (am using Fedora Core 2) - can anyone help me
in setting up the DNS Zones and configuring the named.conf - preferrbaly the NON-GUI way ?? I'm
more comfortable with the console and vi way. I've tried in uncountable ways and all it has
given me are uncountable bad hair days... /sad.gif' border='0' style='vertical-align:middle'
alt='sad.gif' /> Thanks....
Consumer's Poll Ratings Of Diff Linux Distro
(2) Hi, I am trying to install a Linux Distro and convert to it from Windows. I was just wondering if
anyone knows of a site that rates the different versions of Linux according to :: 1) Ease of Use 2)
Ease of installing 3) Speed ( on slower PCs) 4) Support 5) Similarity to Windows GUI I wanna konw
cos my friends and I are planning to setup a new company on budget, and with Windows, it is
virtually impossible to do anything cheaply. Thanks Edmund....
Linux/windows Network.
Help Me Please! (5) Ok, I Have 3 computer In My House. I Had Them All Setup and Working Fine... But Now I Want to switch
one of them to linux, but still share a connection. Ok This Is How My Network Works.... 1st
Computer: Connection Computer: 2nd Computer: XP Box: 3rd Computer: Linux: I Have The Network Up and
running Fine, But I Have Tried To Put Linux On My Network Before.. And it couldn't connect to
the net, share files, or anything.. Is There Something That i Have TO Config? Or What? If you
Know How TO Help Me... Please Do!....
Ethernet Networks - Forth Edition
(0) Ethernet Networks - Forth Edition - Design - Implementation - Operation - Management
----------------------------------------- Preface xv Acknowledgments xix Chapter 1 Introduction
to Networking Concepts 1 1.1 WIDE AREA NETWORKS 2 COMPUTER-COMMUNICATIONS EVOLUTION 2 REMOTE
BATCH TRANSMISSION 2 IBM 3270 INFORMATION DISPLAY SYSTEM 3 NETWORK CONSTRUCTION 5 NETWORK
CHARACTERISTICS 8 1.2 LOCAL AREA NETWORKS 8 COMPARISON TO WANS 9 TECHNOLOGICAL CHARACTERISTICS
14 TRANSMISSION MEDIUM 22 ACCESS METHOD 29 1.3 WHY ETHERNET 33 Chapter 2 Networking Standard....
Looking for linux, create, switch, multiple, ethernet, ports
|
*SIMILAR VIDEOS*
Searching Video's for linux, create, switch, multiple, ethernet, ports
|
advertisement
|
|