Disable Autoconfiguration IPv4 Address

Jumat, 09 Maret 2012


How to disable Autoconfiguration IPv4 Address

Sometime you setup windows server 2008 to vmware using LAN or wifi, you chose Bridge mode to share internet connections between host and virtual machine may be cause of issues with internet connection at virtual machine. They can not connect to the internet or appear a message likes "conflict IP address"

Enter: Run > cmd > ipconfig /all

You may see the following issues:



or:

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82567LM-3 Gigabit Network Connection
Physical Address. . . . . . . . . : 00-23-24-08-30-57
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::8508:6cb9:5112:f8c9 (Preferred)
Autoconfiguration IPv4 Address. . : 169.254.248.201(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0

IPv4 Address. . . . . . . . . . . : 192.168.1.136(Duplicate)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

To fix it, enter these from Command Prompt:

C:\Users\lyngtinh> netsh interface ipv4 show inter

result as:

Idx Met MTU State Name
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
11 10 1500 connected Local Area Connection 

11: <=Keep it in mind

Next run this command:

C:\Users\lyngtinh>netsh interface ipv4 set interface 11 dadtransmits=0 store=persistent

Next, enter
Run > services.msc > disable DHCP Client service

Final, restart your server.

Good luck!
lyngtinh
Source : http://lyngtinh.blogspot.com

Setting ISC DHCP Server Ubuntu

Kamis, 01 Maret 2012


Rubah File /etc/default/isc-dhcp-server seperti kira-kira dibawah ini :
_______________________________________________
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
# This is a POSIX shell fragment
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"
________________________________________________

Kemudian File di /etc/dhcp/dhcpd.conf sebagai berikut :
________________________________________________

#
# Sample configuration file for ISC dhcpd for Debian
#
ddns-update-style none;
log-facility local7;
# A slightly different configuration for an internal subnet.
subnet 192.168.100.0 netmask 255.255.255.0 {
  range 192.168.100.251 192.168.100.254;
  option domain-name-servers 192.168.100.6;
  option domain-name "sman1tumpang.sch.id";
  option routers 192.168.100.6;
  option broadcast-address 192.168.100.6;
  default-lease-time 600;
  max-lease-time 7200;
}
______________________________________________

Jalankan service daemonnya :
_________________________________

sudo /etc/init.d/isc-dhcp-server restart
_________________________________

Check dengan client Automatically DHCP......