Linux / UNIX Tech Support Forum
This is a discussion on How do I configure the network card from the command line? within the Linux software forums, part of the Linux Getting Started category; Hi, How do I configure a network card from CentOS Linux command line? TIA...
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
|||
|
hi there,
To configure your network card on centos via command line you enter the commando: "setup" Or you can edit the file: /etc/sysconfig/network-scripts/ifcfg-eth0 Regards, |
|
||||
|
yup, setup is great tool.
Try FAQ: Howto Red hat enterprise Linux 5 configure the network card | Frequently Asked Questions
__________________
Rocky Jr. What's wrong? I hope I am not making you uncomfortable... Never send a boy to do a mans job. |
|
|||
|
Hi All,
if you want to configure ur network card in a single command line, do the follow, #ifconfig eth0 192.168.0.1 netmask 255.255.255.0 (For 1st card) #ifconfig eth1 192.168.0.2 netmask 255.255.255.0 (For 2nd card) [OR] #ip addr add 192.168.0.1 dev eth0 #ip addr add 192.168.0.1 dev eth1 Note: keep in mind that, if u r using the above command it ll take immediate effect on kernel. if u r using netconfig (or) setup utility it ll only overwrite the /etc/sysconfig/network-scripts/ifcfg-eth0 file.Then , after that u have to restart the network service like follow, #/etc/init.d/network restart But in ip & ifconfig command not like that.please go through the manual page of ip & ifconfig command.Most of Distro doesn't have netconfig (or) setup tool, which one presantly Redhat Have. thanks, aaru |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Suse Enterprise Linux server Set Network card (NIC) to Full duplex setting | raj | Networking, Firewalls and Security | 1 | 20-03-2008 03:33 PM |
| Command line remote access | angelus_kit | Networking, Firewalls and Security | 7 | 05-09-2007 06:30 PM |
| OpenBSD get or display network card IP address Subnet mask information | rockdalinux | Getting started tutorials | 0 | 15-06-2007 10:06 PM |
| HP UX create or add users from command line using useradd | rockdalinux | HP-UX | 0 | 20-12-2006 02:13 PM |
| network card not being recognized | Linux software | 1 | 28-01-2006 11:25 AM | |