LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2004, 10:59 AM   #1
Lanmate
LQ Newbie
 
Registered: Dec 2003
Location: UK
Posts: 16

Rep: Reputation: 0
Network Setup


Hello,

The network settings below are the ones i was given by a colocation company for my box. As far as i know i need a broadcast address for the network interfaces.

IP Addresses:
213.228.232.58
213.228.232.59

Subnet mask:
255.255.255.0

Default gateway:
213.228.232.1

Is the following correct for the above settings? I have no way of testing this.

ifconfig eth0 213.228.232.58 netmask 255.255.255.0 up
ifconfig eth1 213.228.232.59 netmask 255.255.255.0 up
route add -net 213.228.232.255 netmask 255.255.255.0 eth0
route add -net 213.228.232.255 netmask 255.255.255.0 eth1
route add default gw 213.228.232.1 dev eth0
route add default gw 213.228.232.1 dev eth1

What i think is actually wrong with the box at the moment, the broadcast address is 213.228.232.0 instead of 213.228.232.255. Which file is this information stored in, and what would i need to change?

I have to give instructions to the colocation company to type into the box to bring up the networking, this would either be the set above, or information on which file to edit and how.

Thanks in advance.
Lanmate
 
Old 02-22-2004, 02:31 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
A remote installation... Interesting.

Which Linux distribution are you using ?

Most Linux distribution store the configuration files for all network devices in the /etc/sysconfig/network directory.

The basic settings for a RedHat or Mandrake system are as follows, for example, let's use eth0.
/etc/sysconfig/network/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=none
IPADDR=213.228.232.58
NETMASK=255.255.255.0
BROADCAST=213.228.232.255
NETWORK=213.228.232.0
ONBOOT=yes
For a SuSE system, it would look like this
Code:
BOOTPROTO='static'
IPADDR='213.228.232.58'
NETMASK='255.255.255.0'
NETWORK='213.228.232.0'
BROADCAST='213.228.232.255'
STARTMODE='onboot'
Note: The ifcfg-eth0 file varies depending on your Linux distribution.
Also, don't forget to make sure that the SSH server (sshd) is started automatically when the system boots up.

Last edited by Mathieu; 02-22-2004 at 02:34 PM.
 
Old 02-22-2004, 02:39 PM   #3
Lanmate
LQ Newbie
 
Registered: Dec 2003
Location: UK
Posts: 16

Original Poster
Rep: Reputation: 0
The distro is rh9. Everything is configured to run on boot, inclusing ssh, i tested this before i sent the box to the colocation company.

Would these file name still apply to redhat 9? And is the format they take on the same as mandrake?

Thanks
Lanmate
 
Old 02-22-2004, 03:09 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Yes. Mandrake is based on RedHat, so everything is the same.

Thus, the minimum settings for your eth0 on RH9 would be
Code:
DEVICE=eth0
BOOTPROTO=none
IPADDR=213.228.232.58
NETMASK=255.255.255.0
BROADCAST=213.228.232.255
NETWORK=213.228.232.0
ONBOOT=yes
You can also take a look at this document for more info.
http://www.redhat.com/support/resour...sysconfig.html
 
Old 02-22-2004, 03:20 PM   #5
Lanmate
LQ Newbie
 
Registered: Dec 2003
Location: UK
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks a lot! Ive been looking for something like that website for a while, searching to no avail.

Quick question, where did you get the value of the NETWORK from in the ifcfg-eth0 from the information i gave you?

Thanks
Lanmate

Last edited by Lanmate; 02-22-2004 at 03:30 PM.
 
Old 02-22-2004, 08:21 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
The broadcast address ends with .255 and the subnet (network address) ends with .0
Knowing this, I simply replace the last number of the IP.

If you want to learn more about TCP/IP and subnetting, take a look at Daryl's TCP/IP Primer.
http://www.ipprimer.com/overview.cfm
 
Old 02-23-2004, 04:32 AM   #7
Lanmate
LQ Newbie
 
Registered: Dec 2003
Location: UK
Posts: 16

Original Poster
Rep: Reputation: 0
Another question, i specified the gateway 213.228.232.1, would it look to this address by default, because nowhere in your examples is there a gateway specified.

Thanks
Lanmate
 
Old 02-24-2004, 02:42 PM   #8
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Good question... I am not sure.
I believe so, it is common to see default gateways end with .1
Perhaps you should specify it manually.

You need to edit the /etc/sysconfig/network file and use one of the two options:[list=1]
GATEWAY=<value>, where <value> is the IP address of the network's gateway.
GATEWAYDEV=<value>, where <value> is the gateway device, such as eth0.[/list=1]
If you want to learn more about RedHat configuration, take a look at the Reference Guide
http://www.redhat.com/docs/manuals/linux/
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Home network setup with network firewall/router Gates1026 Linux - Networking 4 01-17-2005 08:26 PM
network setup help enjoyzj Linux - Networking 21 04-12-2004 03:29 PM
Network Setup help. TuxToaster Linux - Networking 2 02-11-2004 12:28 PM
network setup help infected Linux - Networking 8 08-24-2003 02:23 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration