Toon posts:

Linux & IP

Pagina: 1
Acties:

Verwijderd

Topicstarter
hoi allemaa,

Ik heb net linux op een testbak op mijn werk geinstalleerd (suse 7.0 distri) en gebruik hier dhcp... maar hoe kom ik nou achter het IP-adres dat de dhcp server aan mijn machine heeft toegekend? Kon het niet in de manuals van suse vinden...

tnx in advance

Verwijderd

Je IP adres kun je zien door op de commandprompt ifconfig in te voeren: je krijgt dan een overzichtje vergelijkbaar met het onderstaande (het --> tussen pijltjes <-- is het IP adres):
code:
1
2
3
4
5
6
7
eth0      Link encap:Ethernet  HWaddr 00:48:54:53:A8:16
          inet addr:--> 192.168.0.2 <-- Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
          RX packets:15025 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17003 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:17 Base address:0x3000

Verwijderd

Topicstarter
Top! bedankt! (stond trouwens wel in manual... moet rustiger kijken :-) )

  • -=Arjan=-
  • Registratie: Februari 2000
  • Laatst online: 15-05 18:37
Kan het zijn dat ipconfig in Redhat 7.1 niet bestaat ? :?

I think there is a world market for maybe five computers ... six tops. Thomas Watson, chairman IBM, 1943


  • flymuts
  • Registratie: Juni 2000
  • Laatst online: 02-08 23:38
Op woensdag 26 september 2001 13:15 schreef -=Arjan=- het volgende:
Kan het zijn dat ipconfig in Redhat 7.1 niet bestaat ? :?
ifconfig

  • tweakerbee
  • Registratie: Maart 2000
  • Laatst online: 16-08 21:25

tweakerbee

dus..?

Je kunt ook gewoon

ifconfig eth0

intikken. Dan geeft ie alleen eth0 (netwerkkaart 1) weer. Laat bijv. je ppp0 achterwege. :)

You can't have everything. Where would you put it?


  • -=Arjan=-
  • Registratie: Februari 2000
  • Laatst online: 15-05 18:37
Ja, die is er idd wel :)

Waarschijnlijk domme vraag, maar hoe start je dat nou ? Via run - browse - sbin/ifconfig en via terminal gebeurd er niks ;(

I think there is a world market for maybe five computers ... six tops. Thomas Watson, chairman IBM, 1943


Verwijderd

/sbin/ifconfig

Gewoon op een terminal intikken.

  • -=Arjan=-
  • Registratie: Februari 2000
  • Laatst online: 15-05 18:37
Dan komt er een foutmelding :

"There has been an error while trying to log in"
If you are using Linux 2.2.x with glibc 2.1.x this is
probably due to incorrectly setup Unix98 ptys."

Volgens Redhat.com was dat alleen een probleem in RH 6.1 :?
Ik heb een verse 7.1

I think there is a world market for maybe five computers ... six tops. Thomas Watson, chairman IBM, 1943


  • Zynth
  • Registratie: September 2001
  • Laatst online: 29-07 15:30
voor de linuxdudez ;)
ifconfig eth0 |grep "inet addr"| tr -s ' '|tr ' ' ':' | cut -d: -f4

had ff nix beters te doen :)

greetz...
Pagina: 1