Results 1 to 5 of 5
Hi,
I am currently running centOS in text mode from my Vbox and wanted to know how to connect to the internet. I gave all the info during the install ...
- 05-13-2010 #1Just Joined!
- Join Date
- Apr 2010
- Location
- Kolkata, India
- Posts
- 14
connect CentOS(text mode) to Internet
Hi,
I am currently running centOS in text mode from my Vbox and wanted to know how to connect to the internet. I gave all the info during the install but it does not seem to be working. So which command or commands should i use to connect the internet from my ethernet connection?
- 05-14-2010 #2
Are you using DHCP? If so, quick answer is
Long answer: Howto Red hat enterprise Linux 5 configure the network cardCode:su - dhclient eth0
- 05-14-2010 #3Just Joined!
- Join Date
- Apr 2010
- Location
- Kolkata, India
- Posts
- 14
Re:
No unfortunately i am not using dhcp. I need to specify an ip adddress and the mask and the gateway with the dns........ wonder what the command could be.
- 05-14-2010 #4
The link I posted shows you how to edit the network script /etc/sysconfig/network-scripts/ifcfg-eth0
With ifconfig you can do
and set the gateway withCode:ifconfig eth0 <ip address> netmask <netmask> up
And DNS can be set up in /etc/resolv.confCode:route add default gw <gateway address>
- 05-16-2010 #5Just Joined!
- Join Date
- Apr 2010
- Location
- Kolkata, India
- Posts
- 14
Re:
Oops that worked..... thank you so much!!!


Reply With Quote