Configuring Network in Ubuntu on Terminal (Graphic Mode)

To be able to connect to the existing network, either through cable, wireless or modem settings can be managed with the right-click on the Network Connection icon on the panel and select Edit Connection

But after that the display will appear as follows

Press Unlock button so you can edit the network configuration
Configuring a Static Network

To configure the connection using the cable at the Wired Auto select eth0 and click the Edit menu and then the display will appear below

Then select the IPv4 Settings tab, select the section Method Manual and fill in the ip number ip that will be input, eg 192.168.1.2 with netmask 255.255.255.0 and gateway 192.168.1.254, and then in the DNS Server fill DNS servers with DNS servers where you, the end of the network settingan akan approximately as follows
Configuring a DHCP Network

For automatic network configuration via DHCP, it is assumed here we will create a new profile for the connection with automatic ip (dhcp), steps are as follows, still in the Network Connections window and click Add after the editing window will appear, fill in the Connection Name connection with the profile you comply with your desire, here are named with dhcp

then select the tab Setings and IPv4 on the Method select Automatic (DHCP)
Configure Network (Text mode)
Recognizing the ifconfig

To make a network configuration, on Ubuntu, use the command ifconfig, ifconfig basic option has the basic


$ ifconfig

example:


$ ifconfig eth0 192.168.0.1

If there are two computers in the LAN card or more, can be used to list the detected wireless card with ifconfig command without options

example:


$ ifconfig 
 

eth0 Link encap: Ethernet HWaddr 00:02:44:3 B: 49:91
inet addr: 10.13.177.11 Bcast: 10.13.255.255 Mask: 255.255.0.0
inet6 addr: fe80:: 202:44 ff: fe3b: 4991/64 Scope: Link
UP Broadcast Running multicast MTU: 1500 Metric: 1
RX packets: 3383763 errors: 330 dropped: 817 overruns: 330 frame: 0
TX packets: 457390 errors: 0 dropped: 0 overruns: 1 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 2682586516 (2.4 GiB) TX bytes: 36126278 (34.4 MiB)
Interrupt: 5 Base address: 0x2000

lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
inet6 addr::: 1 / 128 Scope: Host
UP Loopback Running MTU: 16436 Metric: 1
RX packets: 8 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 8 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 776 (776.0 b) TX bytes: 776 (776.0 b)

to see a list of a more complete network, or see what is available, plus the command ifconfig-a option means that all sample results:


$ ifconfig-a

eth0 Link encap: Ethernet HWaddr 00:02:44:3 B: 49:91
inet addr: 10.13.177.11 Bcast: 10.13.255.255 Mask: 255.255.0.0
inet6 addr: fe80:: 202:44 ff: fe3b: 4991/64 Scope: Link
UP Broadcast Running multicast MTU: 1500 Metric: 1
RX packets: 3383763 errors: 330 dropped: 817 overruns: 330 frame: 0
TX packets: 457390 errors: 0 dropped: 0 overruns: 1 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 2682586516 (2.4 GiB) TX bytes: 36126278 (34.4 MiB)
Interrupt: 5 Base address: 0x2000

eth1 Link encap: Ethernet HWaddr 00: E2: c4: fb: d1: 91
UP Broadcast Running multicast MTU: 1500 Metric: 1
RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 1 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 0 TX bytes: 0
Interrupt: 5 Base address: 0x2000

lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
inet6 addr::: 1 / 128 Scope: Host
UP Loopback Running MTU: 16436 Metric: 1
RX packets: 8 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 8 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 776 (776.0 b) TX bytes: 776 (776.0 b)

Provide the IP Address

to ip Lancard on the second live ip provided the appropriate and write to the device, for example:


$ ifconfig eth1 192.168.10.1

on the network with special rules, such as the subnet, ifconfig option to be as follows


$ ifconfig netmask

In general, the ip address configuration is as above, the level of configuration to a more specialist, can be read on the guide with the ifconfig command


$ man ifconfig

All configuration files stored on the ifconfig /etc/network/interfaces
Giving Gateway Address

This command is the basic route is used to fill in the gateway system, but in general, the route can pull through this routing function, or provide referrals to the network and/or sub-networks that exist. Computer that applied the rules this route, then the computer can be called for to fill in the gateway router (default gateway) use the command route add default gateway example:


$ route add default gateway 192.168.0.254

route to see the results can be seen with the command


$ route-n

example:


$ route-n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use iface
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
10.13.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.13.1.254 0.0.0.0 UG 0 0 0 eth0

To remove a gateway, use the command


$ route del default gateway

example:


$ route del default gateway 192.168.0.254

To act as a router, use the following options


$ route add-net netmask gateway dev

Description;

* network_addr: a network address of the akan dirutekan by the router, network address format is closely related with its netmask
* netmask: netmask order form to indicate the address where the network and host address
* gateway: a gateway from the network address you want linked, generally contains ip address which is a group with a network address of the router
* eth: ETH, which is used to connect to the gateway in the network.

example:


$ route add-net 192.168.30.0 netmask 255.255.255.0 gateway 192.168.10.1 dev eth1

If seen its route table will result in the following table


$ route-n 
 

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use iface
192.168.30.0 192.168.10.1 255.255.255.0 U 1000 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
10.13.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.13.1.254 0.0.0.0 UG 0 0 0 eth0

Giving Nameserver

In the file /etc/resolv.conf DNS server addresses stored on duty meresolve (translate) the address-based name, ip address to. So eg we ugm.ac.id then the system will send the name ugm.ac.id to this DNS server listed in this file, and restore the system to its ip address. To provide DNS server addresses is quite easy .. simply open the file /etc/resolv.conf with your favorite editor;


$ sudo vim /etc/resolv.conf

then add the line

nameserver

example:


nameserver 172.16.30

save the file, and the process of introducing the system to the DNS server has been completed.

All the above need to be run with root access, because it commands over the network potentially disrupt your system, make sure that only the holder of that root access can do the above.
Wireless

Wireless is discussed in this paper are the steps mengkoneksikan Ubuntu intrpid ibex is installed on your notebook, or netbook, with the assumption that hardware is well known.
Wireless Settings
Graphic Mode
Fast connection

Set the wireless connection can be done easily in ubuntu Intrepid ibex, a way to click on the Network icon in the Notification Area on the right side panel, as follows:

If your wireless settings without Wireless Policy (WEP/WPA/PSK) you can directly connect to the wireless network you choose.

Profile settings to set the wireless settings

Setting this profile easily to us when we have some type of wireless connection with each of the different settings. eg we are using the wireless service on campus with a wireless WEP protection policy by entering a username and password, and then there again in the wireless unit of wireless connectivity with the public without the protection (Open), this is the use of profile settings, we can quickly change settings konsisi accordance with the wireless and that is where we set earlier. following steps to create the wireless profile settings

 

1.Open the Network Configuration window:
Or another way is faster, right-click the Network icon in the Notification Area and select Edit Connection, the next window will display the network settings as follows:
 

2.Select the tab to select the wireless profile you want the wireless set, if still empty, please create a new profile by clicking Add button and akan Editing Wireless connection appears as follows:
Enter the profile name you want to select in the Connection Name field, to automatically connect, please check on the checklist "Conncet automatically" and if you wish to set as the default connection for your machine, please check on the checklist "System Settings". Setting each profilenya can be adjusted on the tab "Wireless", "Wireless Security", "IP4 Settings", the general settings of the wireless IP using DHCP server so that the settings on the tab "IP4 Setting" is set in the usual DHCP options.
 

3.Using the system settings with this profile will save you time to set the wireless settings, you simply select the type of profile you want to use Icon's "Network Notification" and select your profile name.

Text Mode

This mode still can not be abandoned by users, use this mode because it is faster. following the steps undertaken:

1.Open terminal Menu >>Application >> Accessoris >>Terminal
 

2.Activate the wireless button on your notebook first.
 

3.Check the network configuration:
 

$ sudo ifconfig

4.Will message appears your network adapter configuration, legible as wlan0, the introduction of this network may vary for each brand.


wlan0 Link encap: Ethernet HWaddr 00:16: cf: 33:56:78
inet addr: 192.168.1.54 Bcast: 192.168.1.255 Mask: 255.255.255.0
inet6 addr: fe80:: 216: cfff: fe33: 5678/64 Scope: Link
UP Broadcast Running multicast MTU: 1500 Metric: 1
RX packets: 6424 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 1938 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 928329 (928.3 KB) TX bytes: 906691 (906.6 KB)
Interrupt: 18 Memory: d0100000-d0102000

5.enable wireless (wlan0)
 

$ sudo ifconfig wlan0 up 

6.If you have wireless already done on the next scanning to detect wireless service
 

$ sudo iwlist wlan0 scan

7.Search results


wlan0 Scan completed:
Cell 01 - Address: 00:18: F8: B6: C5: 7F
ESSID: "pptik-01"
Protocol: IEEE 802.11g
Mode: Managed
Frequency: 2437 GHz (Channel 6)
Quality: 81/100 Signal level: -44 dBm Noise level: -96 dBm
Encryption key: off
Bit Rates: 1 Mb / s, 2 Mb / s, 5.5 Mb / s 6 Mb / s 9 Mb / s
11 Mb / s, 12 Mb / s, 18 Mb / s, 24 Mb / s, 36 Mb / s
48 Mb / s, 54 Mb / s
Extra: bcn_int = 100
Extra: atim = 0

8.Next connect with wireless ESSID with "pptik-01"


$ sudo iwconfig wlan0 essid "pptik-01"

9.Obtain an IP from the DHCP server for wireless


$ sudo dhclient wlan0 
 
10.Obtain IP address:


Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan0/00: 16: cf: 33:56:78
Sending on LPF/wlan0/00: 16: cf: 33:56:78
Sending on Socket / fallback
DHCPDISCOVER on wlan0 to 255,255,255,255 port 67 interval 5
DHCPOFFER of 192.168.1.54 from 192.168.1.1
DHCPREQUEST of 192.168.1.54 on wlan0 to 255,255,255,255 port 67
DHCPACK of 192.168.1.54 from 192.168.1.1
bound to 192.168.1.54 - renewal in 284 seconds.

Happy Testing...!!!

No comments:

Post a Comment

Please Comment...!!