Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.