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...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| Sponsored Links | ||
|
|
|
||||
|
yup, setup is great tool.
Try FAQ: Howto Red hat enterprise Linux 5 configure the network card | Frequently Asked Questions
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
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 |
![]() |
| Bookmarks |
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 | 03-20-2008 04:33 PM |
| Command line remote access | angelus_kit | Networking, Firewalls and Security | 7 | 09-05-2007 07:30 PM |
| OpenBSD get or display network card IP address Subnet mask information | rockdalinux | Getting started tutorials | 0 | 06-15-2007 11:06 PM |
| HP UX create or add users from command line using useradd | rockdalinux | HP-UX | 0 | 12-20-2006 03:13 PM |
| network card not being recognized | Linux software | 1 | 01-28-2006 12:25 PM | |