Translate

বুধবার, ২৩ অক্টোবর, ২০১৩

Linux Static IP Setup


 Static IP Address  Setup In Linux www.newstips24.blogspot.com
How do I configure the Internet Protocol version 4 (IPv4) properties of a network connection with a static IP address for servers running Linux operating systems? How do I configure static IP address under Debian Linux or Redhat Enterprize/ RHEL / Fedora / Sent OS / Ubantu / Redhat Enterprise Linux server?

If you are edit, setup or update IP address that you will flow this system . I wrote Tow kinds of Linux IP setup System .

                 1. Graphically Mode
  1.   You Click on  the Linux Desktop menu --"System." Then select --- "Administration" and click---- "Network."
  2.  Enter the root (administrator) password on the prompt and click ----"OK." The network configuration window will appear
  3.  You Select the tab ---"Devices" in the network configuration window. Then click the button ----"Edit''
  4.  Select the radio button ----"Statically set IP addresses" to activate manual IP address settings.

  5. Enter the IP address value in the field----------- "Address." Then enter the subnet mask in the field ---------"Subnet mask." Note that the subnet mask has the same dot-decimal format as the IP address
  6. Click------- "OK" to set your Linux computer to use the static IP address.


        2 . Command Mode
    You are At First open Terminal
    Red Hat / Fedora / CentOS IP Configuration Files:
    The Red Hat configuration tools store the configuration information in the file /etc/sysconfig/network.
    They will also allow one to configure routing information. 
    /sbin/ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255
     
     Static IP address Configuration: (Configure gateway address)
        # /etc/sysconfig/network
    Assign IP/Subnet: ifconfig eth0 192.168.1.2 netmask 255.255.255.0
    Assign Default Gateway: route add default gw 192.168.1.1 
    Other setup system  in Linux

    [root@baboo]# cd /etc/sysconfig/network-scripts/ Every network interface will have it’s own interface script file. eth0,eth1,eth2 and so on. Vi the ifcfg-eth0 interface script file for interface eth0. Replace the contents of the ifcfg-eth0 file with the parameters below.
    [root@baboo]# vi ifcfg-eth0.

    DEVICE=eth0
    TYPE=Ethernet
    ONBOOT=yes
    BOOTPROTO=none
    IPADDR=192.168.1.2
    NETMASK=255.255.255.0
    GATEWAY=192.168.0.1
    If you configure DHCP setup Configure than 
    If you want to switch back to DHCP, repeat the steps above and replace the contents of the ifcfg-eth0 file with the parameters below.
    DEVICE=eth0
    BOOTPROTO=dhcp
    HWADDR=00:0F:20:71:0A:50
    ONBOOT=yes
    TYPE=Ethernet
    DHCP_HOSTNAME=klmdrpdr01p.klm1.netcel360.com

     
    Restart your interface to apply the changes.

    [root@baboo]#ifdown eth0
    [root@baboo]#ifup eth0
     
    [root@baboo]#service network restart 

    Or
    [root@baboo]#/etc/init.d/networking restartwww.newstips24.blogspot.com

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন

Popular Posts

show

click here