Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Setting up the Network on a red hat 7.1 box

  Date: Nov 24    Category: Unix / Linux / Ubuntu    Views: 521
  

I just installed Red Hat Linux 7.1 and I am having trouble setting up the network. I think that I have configured the IP and domains right for eth0.

Is this the correct set of commands...


The following commands were used:-
ifdown eth0
ifconfig eth0 ip#
route add -host ip# dev eth0

Checked using the following commands (kernal ip routing table): -

netstat -r

displays the default (with loopback already setup) and with the added entry but does not seem to save correctly because (upon say a reboot of the system) it displays only the default routing information. I tried these steps on my home machine with no problems.

Share: 

 

1 Answer Found

 
Answer #1    Answered On: Nov 24    

Fill in the correct info and you should be set.

[root@myusername root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.9.255.255
IPADDR=10.9.10.16
NETMASK=255.255.0.0
NETWORK=10.9.0.0
ONBOOT=yes

 
Didn't find what you were looking for? Find more on Setting up the Network on a red hat 7.1 box Or get search suggestion and latest updates.




Tagged: