ifconfig
jasonandashley1
Member Posts: 15 ■□□□□□□□□□
in Linux+
i studying for the exam using fedora 2 on my lap and fedora 3 on my desktop. I remember from the network + that ifconfig should display all the ip/dns etc. when i type ifconfig it says
command noit found. anyone know why?
command noit found. anyone know why?
Brave, brave were the soldiers (high named to-day) who lived through the fight;
But the bravest press'd to the front and fell, unnamed, unknown.
..Walt Whitman..
But the bravest press'd to the front and fell, unnamed, unknown.
..Walt Whitman..
Comments
-
TeKniques Member Posts: 1,262 ■■■■□□□□□□That's weird, I'm assuming your opening a terminal from the GUI and entering the command?
Did you setup your network configs during install? If I remember correctly even if your NIC isn't recognized you should still get some sort of reading from ifconfig -
jasonandashley1 Member Posts: 15 ■□□□□□□□□□yes. Im set up the network. I'm conected to the internet right now.Brave, brave were the soldiers (high named to-day) who lived through the fight;
But the bravest press'd to the front and fell, unnamed, unknown.
..Walt Whitman.. -
jasonandashley1 Member Posts: 15 ■□□□□□□□□□well, i kind of got it to work. Logged in to root, cd to /sbin and did a ./ifconifg
does this mean there is a link broken somewhere and therefore "ifconifg" wont work by just typing "ifconfig" in / ?Brave, brave were the soldiers (high named to-day) who lived through the fight;
But the bravest press'd to the front and fell, unnamed, unknown.
..Walt Whitman.. -
drewm320 Member Posts: 68 ■■□□□□□□□□No, it means that /sbin is not in your PATH (which is sort of odd). Type:
echo $PATH
This will show all the directories that Linux will search in for a program if you do not specify the complete path. To add directories to your PATH, go to your user's home directory (i.e /root) and edit the .bash_profile file. There will be a line like this:
PATH=$PATH:$HOME/bin
Just add directories as needed separated by colons:
PATH=$PATH:$HOME/bin:/sbin
Then log out and back in or start a new xterm to make the change take effect. -
lordy Member Posts: 632 ■■■■□□□□□□/sbin contains system binaries which are supposed to be used by root therefore /sbin is not in the user's default $PATH.
You can either modify your path to include /sbin or simply call /sbin/ifconfig.Working on CCNP: [X] SWITCH --- [ ] ROUTE --- [ ] TSHOOT
Goal for 2014: RHCA
Goal for 2015: CCDP -
darkuser Member Posts: 620 ■■■□□□□□□□do a
locate ifconfig
[kurt@netsys70 kurt]$ locate ifconfig
/usr/share/man/man8/ifconfig.8.gz
/usr/share/man/de_DE/man8/ifconfig.8.gz
/usr/share/man/fr_FR/man8/ifconfig.8.gz
/usr/share/man/pt_BR/man8/ifconfig.8.gz
/usr/src/linux-2.4.20-8/arch/ia64/sn/io/ifconfig_net.c
/usr/src/linux-2.4.20-8/include/asm-ia64/sn/ifconfig_net.h
/sbin/ifconfig
[kurt@netsys70 kurt]$
[kurt@netsys70 kurt]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:B0:D0:44:81:24
inet addr:172.16.3.70 Bcast:172.16.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3502339 errors:0 dropped:0 overruns:0 frame:0
TX packets:48870 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:240493675 (229.3 Mb) TX bytes:22572137 (21.5 Mb)
Interrupt:5 Base address:0xec80
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9797293 errors:0 dropped:0 overruns:0 frame:0
TX packets:9797293 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:668960916 (637.9 Mb) TX bytes:668960916 (637.9 Mb)
[kurt@netsys70 kurt]$rm -rf / -
mctoffer Member Posts: 24 ■□□□□□□□□□you can also check your /etc/sysconfig/network-scripts for the ip address of your ethernet card
-
rossonieri#1 Member Posts: 799 ■■■□□□□□□□mctoffer wrote:you can also check your /etc/sysconfig/network-scripts for the ip address of your ethernet card
and you can type all the gateway, ip addr etc manually.the More I know, that is more and More I dont know.