Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page Questions on GRUB and ethernet modems
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Newbie If you're new to the wonderful world of Linux, start here!

Reply
 
Thread Tools Display Modes
Old 05-07-2003   #1 (permalink)
ZhiYi
Just Joined!
 
Join Date: Mar 2003
Posts: 25
Questions on GRUB and ethernet modems

Hi,
I have 3 questions to ask about GRUB and adsl ethernet modems. Here goes:

1) Do you know the steps to reinstall GRUB, in case the OS bootup screen disappears. (e.g when windows is reinstalled) ?

2) I want to buy an ethernet adsl modem. What models are compatible with linux ?

3) Presently I have a LAN connecting 2 pcs at home. The IP addresses and subnet masks are manually configured. Hence, if i install the adsl ethernet modem on 1 pc, do I have to change the NIC to use DHCP or can i continue using my manual IP and subnet settings?
My friend,whose linux connection works, told me to keep the manual settings while a linux book I read said most adsl connections use DHCP.


Please reply quickly if you can. Thanks!
ZhiYi is offline   Reply With Quote
Old 05-07-2003   #2 (permalink)
bpark
Linux Engineer
 
Join Date: Nov 2002
Location: Queens, NY
Posts: 1,319
Send a message via AIM to bpark
!) GRUB can be reinstalled to the MBR. In my case, I have one IDE hard drive and the MBR obviously in there. I run 'grub install /dev/hda' and that puts GRUB back into the MBR.

2) I don't know how DSL works but I would think that they give you an external modem. Once you have that, you'll need an internal NIC card that plugs into the external modem. Most brands work well with linux. It's other things like printer and scanner drivers that are harder to find.

3) Again, I don't know how DSL works but my cable modem gives one IP address. I have a router that does NAT. It can act as a DHCP server but I choose to manually configure my IP address for port forwarding reasons. So computer A and computer B both acccess the internet through the router which in turn goes through the cable modem.
__________________
The best things in life are free.
bpark is offline   Reply With Quote
Old 05-07-2003   #3 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
1. Alternative method: GRUB can install itself on the MBR by using the setup or install internal commands. Use the help internal command to get information about them. You can set up a GRUB boot disk using the GRUB image and rawrite.exe from my homepage. The GRUB stage 2 file is required to be on the hard drive, though.

2. If you get such a modem that bpark was talking about, there's no problem. Many companies deal with USB modems, though, and they're a _lot_ trickier. There are very well supported drivers for some, while others aren't supported in Linux at all. Check with the dealer before you buy it.

3. If you get one of those modems with an ethernet connection, I would suggest installing two NICs in the computer you will be using it on: one for the modem and one to connect to the other PC. That way you can also make the box with the modem connected to a router. That way the other system can use the internet via the first one. The NIC connected to the modem will run on DHCP (or static, if that's what your ISP wants, which it usually isn't) while you can configure the other one as you wish.
If your modem is connected via USB, it will automatically get a network interface on its own, and the same principles are valid, except that you don't need another physical NIC.
Dolda2000 is offline   Reply With Quote
Old 05-09-2003   #4 (permalink)
ZhiYi
Just Joined!
 
Join Date: Mar 2003
Posts: 25
Few more questions about grub and ethernet adsl

Hi Dolda2000 and bpark,
Thanks for the advice you have given. I have a few points to confirm though.

Is 'grub install /dev/hda' a command to be typed on the command line?
What is the grub stage 2 file and where to I get it?

Lastly,what does NAT mean and is the router the only device to have NAT? Do ethernet adsl modems have NAT too?
ZhiYi is offline   Reply With Quote
Old 05-09-2003   #5 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
There is a small typo in bpark's post. It should be "grub-install /dev/hda", not "grub install /dev/hda", but, yes, it is a shell command.

Since the boot sector on IBM compatibles (ie. PCs) only is 512 bytes long, and GRUB is much larger than that, GRUB is divided into two stages. Stage 1 fits into the boot sector, and its only job is to load stage 2. Stage 2 resides in a file that probably already is somewhere in your /boot directory, by the name stage2. If it isn't there, you will be able to find it in /usr/share/grub/i386-pc.

NAT stands for Network Address Translation, and refers to the process of letting several computers connect to a network (eg. the internet) through one node on that network by letting that node translate all packets forwarded onto the other network making them look as if they came only from itself.
Hardware routers are certainly not the only devices that support NAT. Linux supports it as well, and is much better at it as well. Yes, it's harder to configure Linux to use NAT than letting a hardware router do the job, but it's often much cheaper, since you don't have to buy a hardware router.
Ethernet ADSL Modems do not support NAT, on the other hand. A Modem is, just like the name suggests, just a MOdulator/DEModulator, which means that all it does is modulate the signals to enable them to travel over phone lines. Some are a bit more advanced than that, but I haven't heard of models doing NAT.
Dolda2000 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 05:05 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0