Question

how to complete network configuration on centro linux server?

how to complete network configuration on centro linux server?

1 0
Add a comment Improve this question Transcribed image text
Answer #1

In CentOS Linux server the configuration files reside in the location "/etc/sysconfig/network-scripts/". From this location one can do the network configuration. For every network interface that directory should have a separate configuration file. If someone is using the desktop version of Linux, then they should disable the network manager before the configuration. For configuring the network interface one can use the following command:

$ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

The IP address may be static or it may be assigned by DHCP. If the IP address is static, then the configuration should be:

DEVICE=eth0

BOOTPROTO=static

HWADDR=00:05:29:E0:4F:3D

IPADDR=10.0.1.10

NETMASK=255.255.255.0

GATEWAY=10.0.1.1

ONBOOT=yes

TYPE=Ethernet

For the DHCP assigned IP address, the configuration should be:

DEVICE=eth0

BOOTPROTO=dhcp

HWADDR=00:05:29:E0:4F:3D

ONBOOT=yes

TYPE=Ethernet

After the configuration is completed, one should activate the interface by using the command:

$ sudo service network restart

Hope this helps.

Add a comment
Know the answer?
Add Answer to:
how to complete network configuration on centro linux server?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT