Question

Locked

Howto set an IP, subnet, and gateway

By riddler333 ·
I did a fedora core 5 install with a friend but now we are having trouble trying to set the IPs can anyone tell us what the command in the terminal is?

IP:
Subnet Mask:
Gateway:

need to know how to set them please

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

okay...

by scott_heath In reply to Howto set an IP, subnet, ...

i have fedora core 4, but I believe it is in the same place. the file that contains this info can be found at:

/etc/sysconfig/network-scripts/ifcfg-eth0

just use vi to edit the file and change the IP info

Collapse -

Good Day

by leomerlubo_31 In reply to Howto set an IP, subnet, ...

I read your question and I want to answer it in a non critical way, first, the Gateway or the Default Gateway of your Network will be the IP Address given by your Internet carrier, next the IP Address of your 1st Computer will be the next number after the Default Gateway, Such for example, your default Gateway was 192.168.1.0, the IP Address of The 1st PC will be 192.168.1.1, then the 2nd PC will be configured its IP Address as 192.168.1.2 and so on..
After you have configured the Default Gateway and the IP Address of every PC, you have to determine the subnet mask that you have to use.. In solving for the subnet mask, there is a computation using the powers of 2, but it is so critical to discuss here, so what will I do is to create a table of the subnet mask that you can use.

For 01 - 01 PC - 255.255.255.128
For 02 - 03 PC - 255.255.255.192
For 04 - 07 PC - 255.255.255.224
For 08 - 15 PC - 255.255.255.240
For 16 - 31 PC - 255.255.255.248
For 32 - 63 PC - 255.255.255.252
For 64 - 127 PC - 255.255.255.254
For 128 - 255 PC - 255.255.255.255

Back to Desktop Forum
3 total posts (Page 1 of 1)  

Hardware Forums