
1、重命名网卡名
win10左下角LOGO->设置->网络和internet->(左侧)以太网->(右侧)网络和共享中心->(左侧)更改适配器设置,默认情况下两个网卡名称改为“nic1”,“nic2”。
2、Power Shell
打开Win10的power shell使用命令行设置,在win10左下角LOGO输入powershell,右键点击“Windows PowerShell”,以管理员身份运行,会有d出对话框,选择“是”。
3、命令行
在d出的窗口中输入new-netLbfoteam “teamingname” -teamingmode switchindependent接下来会提示输入需要绑定的网卡名,如图:
4、效果
回到电脑的网络适配器,网卡已经绑定成功,此时原来的两个独立的网卡已经不见了,显示的是绑定的网卡聚合的名称,如图:
5、删除网卡聚合
若想恢复原来的网卡配置,可输入命令remove-netLbfoteam -name teamingname删除指定网卡组,get-netLbfoteam | remove-netLbfoteam删除所有网卡组。
powershell中执行命令, get-nicadaptor -name "卡的名字" -advancedproperties 应该差不多这个命令 就可以看到wwn 或者是在bios里面找到这张FC卡 看里面的详细信息
固定IP要向中国电信或者是网通服务商申请。
固定IP地址是长期固定分配给一台计算机使用的IP地址,一般是特殊的服务器才拥有固定IP地址。
动态IP:因为IP地址资源非常短缺,通过电话拨号上网或普通宽带上网用户一般不具备固定IP地址,而是由ISP动态分配暂时的一个IP地址。
普通人一般不需要去了解动态IP地址,这些都是计算机系统自动完成的。 公有地址(Public address)由Inter NIC(Internet Network Information Center 因特网信息中心)负责。这些IP地址分配给注册并向Inter NIC提出申请的组织机构。通过它直接访问因特网。
私有地址(Private address)属于非注册地址,专门为组织机构内部使用。
以下列出留用的内部私有地址
A类 10000--10255255255
B类 1721600--17231255255
C类 19216800--192168255255
扩展资料
基本格式:
IP网络使用32位地址,以点分十进制表示,如19216801。
地址格式为:IP地址=网络地址+主机地址或 IP地址=网络地址+子网地址+主机地址。
网络地址是因特网协会的ICANN(the Internet Corporation for Assigned Names and Numbers)分配的,下有负责北美地区的InterNIC、负责欧洲地区的RIPENIC和负责亚太地区的APNIC 目的是为了保证网络地址的全球唯一性。
主机地址是由各个网络的系统管理员分配。因此,网络地址的唯一性与网络内主机地址的唯一性确保了IP地址的全球唯一性。
地址分配:
根据用途和安全性级别的不同,IP地址还可以大致分为两类:公共地址和私有地址。公共地址在Internet中使用,可以在Internet中随意访问。私有地址只能在内部网络中使用,只有通过代理服务器才能与Internet通信。
参考资料:
参考资料:
::==================批处理获取网络连接名称==============
::code by youxi01@bbsbathomecn 2008-1-5
@echo off
setlocal enabledelayedexpansion
title 获取网络连接名称@bbsbathomecn
Rem '
set "NIC_flag=Ethernet" %'%
set NIC_num=0 %'%
Rem ===========主程序===================
for /f "tokens=1,2,3, delims=: " %%i in ('ipconfig /all') do (
set /a num+=1
if "%%i"=="%NIC_flag%" (
set /a num_=!num!+3,NIC_num+=1
set NIC_name!Nic_num!=%%k)
if !num! EQU !num_! set var=%%l
set var=!var::=!
set Desp!Nic_num!=!var!
)
Rem ===========结果输出===============
echo 你共有 %NIC_num% 块网卡&echo
echo 连接名称 网卡型号
echo
for /l %%i in (1 1 %NIC_num%) do echo !NIC_name%%i! !Desp%%i!
pause>nul
import javaioBufferedReader;
import javaioIOException;
import javaioInputStreamReader;
/
与系统相关的一些常用工具方法
@author stephen
@version 100
/
public class SystemTool {
/
获取当前 *** 作系统名称
return *** 作系统名称 例如:windows xp,linux 等
/
public static String getOSName() {
return SystemgetProperty("osname")toLowerCase();
}
/
获取unix网卡的mac地址
非windows的系统默认调用本方法获取如果有特殊系统请继续扩充新的取mac地址方法
@return mac地址
/
public static String getUnixMACAddress() {
String mac = null;
BufferedReader bufferedReader = null;
Process process = null;
try {
process = RuntimegetRuntime()exec("ifconfig eth0");// linux下的命令,一般取eth0作为本地主网卡 显示信息中包含有mac地址信息
bufferedReader = new BufferedReader(new InputStreamReader(process
getInputStream()));
String line = null;
int index = -1;
while ((line = bufferedReaderreadLine()) != null) {
index = linetoLowerCase()indexOf("hwaddr");// 寻找标示字符串[hwaddr]
if (index >= 0) {// 找到了
mac = linesubstring(index +"hwaddr"length()+ 1)trim();// 取出mac地址并去除2边空格
break;
}
}
} catch (IOException e) {
eprintStackTrace();
} finally {
try {
if (bufferedReader != null) {
bufferedReaderclose();
}
} catch (IOException e1) {
e1printStackTrace();
}
bufferedReader = null;
process = null;
}
return mac;
}
/
获取widnows网卡的mac地址
@return mac地址
/
public static String getWindowsMACAddress() {
String mac = null;
BufferedReader bufferedReader = null;
Process process = null;
try {
process = RuntimegetRuntime()exec("ipconfig /all");// windows下的命令,显示信息中包含有mac地址信息
bufferedReader = new BufferedReader(new InputStreamReader(process
getInputStream()));
String line = null;
int index = -1;
while ((line = bufferedReaderreadLine()) != null) {
index = linetoLowerCase()indexOf("physical address");// 寻找标示字符串[physical address]
if (index >= 0) {// 找到了
index = lineindexOf(":");// 寻找":"的位置
if (index>=0) {
mac = linesubstring(index + 1)trim();// 取出mac地址并去除2边空格
}
break;
}
}
} catch (IOException e) {
eprintStackTrace();
} finally {
try {
if (bufferedReader != null) {
bufferedReaderclose();
}
} catch (IOException e1) {
e1printStackTrace();
}
bufferedReader = null;
process = null;
}
return mac;
}
/
测试用的main方法
@param argc
运行参数
/
public static void main(String[] argc) {
String os = getOSName();
Systemoutprintln(os);
if(osstartsWith("windows")){
//本地是windows
String mac = getWindowsMACAddress();
Systemoutprintln(mac);
}else{
//本地是非windows系统 一般就是unix
String mac = getUnixMACAddress();
Systemoutprintln(mac);
}
}
}
-------------------------------------------------------------------------
本程序可以正确获得本机IP地址和网卡"eth0"的MAC地址,已经在windowsXP和ubuntu-Linux上测试过
(注意:如果有多块网卡,可能出错)
下面给出代码:
import javanet;import javautil;
public class Test { public static void main(String[] args) { Test t = new Test(); Systemoutprintln(tgetLocalIP()); Systemoutprintln(tgetMacAddr()); }
public String getMacAddr() { String MacAddr = ""; String str = ""; try { NetworkInterface NIC = NetworkInterfacegetByName("eth0"); byte[] buf = NICgetHardwareAddress(); for (int i = 0; i < buflength; i++) { str = str + byteHEX(buf[i]); } MacAddr = strtoUpperCase(); } catch (SocketException e) { eprintStackTrace(); Systemexit(-1); } return MacAddr; }
public String getLocalIP() { String ip = ""; try { Enumeration<> e1 = (Enumeration<>) NetworkInterface getNetworkInterfaces(); while (e1hasMoreElements()) { NetworkInterface ni = (NetworkInterface) e1nextElement(); if (!nigetName()equals("eth0")) { continue; } else { Enumeration<> e2 = nigetInetAddresses(); while (e2hasMoreElements()) { InetAddress ia = (InetAddress) e2nextElement(); if (ia instanceof Inet6Address) continue; ip = iagetHostAddress(); } break; } } } catch (SocketException e) { eprintStackTrace(); Systemexit(-1); } return ip; }
/ 一个将字节转化为十六进制ASSIC码的函数 / public static String byteHEX(byte ib) { char[] Digit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; char[] ob = new char[2]; ob[0] = Digit[(ib >>> 4) & 0X0F]; ob[1] = Digit[ib & 0X0F]; String s = new String(ob); return s; }}
以上就是关于Win10怎样绑定双网卡或多网卡做Nic Teaming链路聚合全部的内容,包括:Win10怎样绑定双网卡或多网卡做Nic Teaming链路聚合、如何获得Windows Server 2012上的FC的WWN、怎么可以申请到 固定IP等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)