Wednesday, June 17, 2009

Linux PC on Network


Back in 2008 when i was unable to bring my PC (Linux OS) on a network, i was thinking of how to connect it to the internet or bring on a network or how to install messenger or any other software because i was completely unaware of this as i am not a Linux guy as i am network guy but i am trying to for the learning of Linux, here are the few steps or few changes required in the files thne we can bring our pc on a network and can enjoy internet may be it will help some one who really don't know how to bring pc on network. There are certain file in which we have to make changes (for CLI users) like:
/etc/sysconfig/network
/etc/sysconfig/network-script/ifcfg-eth0
/etc/resolve.conf


Step # 1: vi /etc/sysconfig/network

In this file just define the gateway like
NETWORKING=yes
HOSTNAME=myserver.proxy
GATEWAY=192.168.1.1

Step # 2: vi /etc/sysconfig/network-script/ifcfg-eth0

In this file we just have to define our IP address
DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.255.255.255
HWADDR=00:1A:64:6D:3F:9C
IPADDR=10.x.x.x
NETMASK=255.0.0.0
NETWORK=10.0.0.0
ONBOOT=yes
TYPE=Ethernet
GATEWAY=192.168.1.2

Step # 3: vi /etc/resolve.conf

In this file you have to give your DNS and Preferred DNS ip address
nameserver 10.x.x.x
nameserver 10.x.x.x

Thos who want to make it graphically jsut with one command, just enter following command:

[root@myserver ~]# netconfig

you will be promting a window as you seen, If you are running DHCP server on you network then just check [*] USe Dynamic... here we go your system is now on a network. Yu can check by following command

[root@myserver ~]# ifconfig
eth0
HWaddr 00:10:C6:9F:42:62
inet addr:10.110.10.2
Bcast:10.255.255.255
Mask:255.0.0.0

Here we go, hopefully it will be informative.
Enjoy

7 comments:

nayyares said...

nice post.

SOHAIL AKHTAR said...

Thnx sir, m just trying to make familier my self with Linux

Khush Dil Khan said...

Nice work buddy
keep it up

ninest123 said...

replica watches, ugg boots, ralph lauren pas cher, oakley sunglasses, louis vuitton, nike roshe run, chanel handbags, burberry, kate spade outlet, louis vuitton outlet, nike outlet, longchamp, louboutin shoes, gucci outlet, ray ban sunglasses, air jordan pas cher, nike free, jordan shoes, sac longchamp, uggs on sale, louboutin, nike free, cheap oakley sunglasses, nike air max, prada outlet, air max, christian louboutin outlet, tory burch outlet, longchamp pas cher, polo ralph lauren outlet, ugg boots, polo ralph lauren outlet, louis vuitton, replica watches, nike air max, louboutin pas cher, oakley sunglasses, tiffany jewelry, oakley sunglasses, ray ban sunglasses, louis vuitton, prada handbags, michael kors, ray ban sunglasses, louis vuitton outlet, louboutin outlet, longchamp outlet, oakley sunglasses, longchamp outlet, tiffany and co

ninest123 said...

michael kors, hermes, michael kors outlet, converse pas cher, vans pas cher, true religion jeans, michael kors, nike roshe, tn pas cher, michael kors outlet, michael kors outlet, michael kors outlet, north face, nike air max, mulberry, coach outlet, nike air max, ugg boots, nike free run uk, north face, replica handbags, nike air max, sac guess, michael kors outlet, lululemon, true religion jeans, abercrombie and fitch, nike blazer, hollister pas cher, michael kors, new balance pas cher, hogan, oakley pas cher, kate spade handbags, true religion outlet, coach outlet, air force, burberry outlet online, vanessa bruno, ugg boots, timberland, ray ban pas cher, true religion jeans, coach purses, lacoste pas cher, hollister, burberry, ralph lauren uk, ray ban uk, michael kors

ninest123 said...

vans shoes, beats by dre, ghd, lancel, herve leger, new balance, ray ban, ralph lauren, abercrombie and fitch, celine handbags, north face outlet, birkin bag, louboutin, chi flat iron, soccer jerseys, nike air max, ferragamo shoes, mont blanc, insanity workout, hollister, jimmy choo shoes, nfl jerseys, soccer shoes, nike huarache, nike air max, nike roshe, wedding dresses, instyler, iphone cases, p90x workout, timberland boots, reebok shoes, mcm handbags, gucci, oakley, hollister, asics running shoes, valentino shoes, longchamp, converse, vans, converse outlet, baseball bats, hollister, north face outlet, bottega veneta, lululemon, babyliss, mac cosmetics, nike trainers

ninest123 said...

bottes ugg, ugg boots uk, ugg,uggs,uggs canada, canada goose uk, canada goose outlet, pandora jewelry, moncler, hollister, marc jacobs, swarovski, juicy couture outlet, replica watches, canada goose, moncler, swarovski crystal, links of london, wedding dresses, moncler outlet, thomas sabo, karen millen, pandora jewelry, moncler, montre pas cher, juicy couture outlet, ugg pas cher, louis vuitton, moncler, moncler, louis vuitton, moncler, louis vuitton, supra shoes, coach outlet, canada goose, toms shoes, ugg,ugg australia,ugg italia, moncler, doudoune canada goose, canada goose, canada goose outlet, louis vuitton, pandora charms, canada goose, sac louis vuitton pas cher, pandora charms