# 查看所有IP地址h01_root[/]# lanscan Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI Path Address In# State NamePPA ID Type Support Mjr# 0/0/0/0/0 0x52FFBFBCEC12 0 UP lan0 snap0 1 ETHER Yes 119 0/0/0/1/0 0x367DECB3D95C 1 UP lan1 snap1 2 ETHER Ye
今天进行负载均衡的测试的时候 想查询一下数据库相关信息 百度了下 找到解决方案为: SELECT SERVERNAME = CONVERT(NVARCHAR(),SERVERPROPERTY('SERVERNAME')) ,LOCAL_NET_ADDRESS AS 'IPAddressOfSQLServer' ,CLIENT_NET_ADDRESS AS 'ClientIPAddress' FROM SYS.DM_EXEC_CONNECTIONS WHERE SESSION_ID = @@SPI
show ip interface brief 1.如果交换机上没有做VLAN 可以直接使用:show arp MPG3560#sh arp Protocol Address Age (min) Hardware Addr Type Interface Internet 10.16.254.21 228 1cdf.0fdd.1c04 ARPA GigabitEthernet0/9 Internet 10.16.254.22 - fcfb.fbc8.7ec9 ARPA GigabitEtherne
public class IpGetUtil { public static String getIPAddress(Context context) { NetworkInfo info = ((ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo(); if (info != null && info.isConnected()) { if (