Thread: small size os
View Single Post
  #16  
Old 10-09-2002, 06:07 PM
xMerCLorDx
 
Posts: n/a
Default

and if you read about 15 lines down...

Quote:
To configure your card, you need root privileges. The network card configuration can be done from the command line with ifconfig(8) but you would have to do it after each reboot of the system. The file /etc/rc.conf is where to add the network card's configuration.

Open /etc/rc.conf in your favorite editor. You need to add a line for each network card present on the system, for example in our case, we added these lines:

ifconfig_dc0="inet 192.168.1.3 netmask 255.255.255.0"
ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
see?

% is the shell prompt... all that other stuff is not the command..when you just type "ifconfig" that status is what it displays... if you notice the part of the command being typed is bolded..

let me show you an example... ( on that same link you gave me about a page down )
Quote:
% ping -c5 192.168.1.3
PING 192.168.1.3 (192.168.1.3): 56 data bytes
64 bytes from 192.168.1.3: icmp_seq=0 ttl=64 time=0.082 ms
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.074 ms
64 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=0.076 ms
64 bytes from 192.168.1.3: icmp_seq=3 ttl=64 time=0.108 ms
64 bytes from 192.168.1.3: icmp_seq=4 ttl=64 time=0.076 ms
you don't type out all that...... only those on the line of the shell prompt (i.e. "%")
Reply With Quote