顯示具有 server 標籤的文章。 顯示所有文章
顯示具有 server 標籤的文章。 顯示所有文章

2016年3月29日 星期二

CentOS 6.7 interface config IPv4/IPv6 on Windows Server 2012 R2 (Hyper-V)


在Windows Server 2012 R2 安裝完CentOS 6.7 minimal ,預設網卡是沒有啟動的,設定方式如下:

# cd /etc/sysconfig/network-scripts

# vi ifcfg-eth0
== default config ==
EVICE=eth0
TYPE=Ethernet
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=dhcp


== modified ===
EVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
NETWORK=xx.xx.xx.xx
NETMASK=255.255.255.0
IPADDR=xx.xx.xx.xx
GATEWAY=xx.xx.xx.xx
IPV6INIT=yes
IPV6ADDR=2001:XXX:XXX:XXX::XXXX/64
IPV6_DEFAULTGW=2001:XXX:XXX:XXX::XXXX


註:
NETWORKING_IPV6=yes|no – 開啟或關閉IPv6
IPV6INIT=yes – Enable or disable IPv6 configuration for all interfaces.






2015年7月2日 星期四

關閉Windows Server 2008 網卡設定中不必要的通道介面

網管人員常會透過ifconfig /all 查來看目前系統的IP設定狀況,
但每次只要在有啟用IPv6的電腦,指令輸入後,就會有一長串的
介面,不易觀看看,既然沒用到就關了它吧。

微軟有提供快速關閉的Fix執行檔,也有手動設定說明,
參考 
How to disable IPv6 or its components in Windows
https://support.microsoft.com/en-us/kb/929852


關閉 6to4 & Teredo adapters
 netsh int 6to4 set state state=disabled
 netsh int teredo set state type=disabled