m*********e 发帖数: 37 | 1 Hi guys,
When I am using the same sample from msdn, as:
____________________________________________________
// Establish the local endpoint for the socket.
IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHostName());
IPAddress ipAddr = ipHost.AddressList[0];
IPEndPoint ipEndPoint = new IPEndPoint(ipAddr, 11000);
// Create a TCP socket.
Socket client = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
// Connect the socket to the remote endpoint.
client.Connect(i |
|
n*n 发帖数: 229 | 2 University of Massachusetts Medical School
http://addgadgets.com/ipaddress/index.php?ipaddr=146.189.1.1
IP Address: 146.189.1.1 Whois IP IP Blacklist IP Weather
Decimal: 2461860097
Continent: North America
Continent Code: NA
Country: United States
Country Code: US
Region: Massachusetts
City: Worcester
City Latitude: 42.3648
City Longitude: -71.8969
Postal Code: 01655
Metro Code: 506
Area Code: 508
ISP name: University of Massachus... 阅读全帖 |
|
p**i 发帖数: 688 | 3 http://www.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server
dnsmasq里可以Assign an alternate Gateway
Create a DHCP setting that gives a static IP address to a certain MAC,
but with a different Gateway address than the rest.
dhcp-range=net:2,192.168.1.0,255.255.255.0,static
dhcp-option=net:2,3,192.168.1.2
Then use the following on MACs of your computers connected to router B:
dhcp-host=, net:2,
这样你B网的机器就会设192.168.1.2为gateway
DHCP |
|
a***a 发帖数: 161 | 4 ip multicast group 是由 ip address 和 port 一起标识的,
但用于加入 multicast group 的 igmp 报文里面只有 ipaddr
的字段,没有关于 port 的信息。这是怎么回事? |
|
a*******e 发帖数: 3021 | 5 好,多谢多谢
这个得等网络又抽风的时候测
update:
好像不行哦
刚才又抽风,
ping -c 5 -M do -s 1400 www.shnoop.com
ping: unknown host www.shnoop.com
这个根本ping不通,因为域名解释不了,其实这个网站2分钟前俺刚打开过。
俺还用了dnsmasq好像也霉气作用
俺的dns server是156.154.70.1, dnsmasq设置需要在resolv.conf里面加nameserver
127.0.0.1
more /etc/sysconfig/network-scripts/ifcfg-eth0
# Networking Interface
DEVICE=eth0
HWADDR=00:23:54:BB:90:30
ONBOOT=no
IPADDR=192.168.1.10
BOOTPROTO=none
NETMASK=255.255.255.0
TYPE=Ethernet
GATEWAY=192.168.1.1
DNS1=156.154.70.1
IPV6INIT=no
USERCTL=no
PREFIX |
|
f**c 发帖数: 791 | 6 多谢,能详细说说吗?
网上说在/etc/sysconfig/network里面加GATEWAY=...但是restart network service后
加的东西就没有了,只剩下:
NETWORKING=yes
HOSTNAME=***
/etc/sysconfig下有两个目录:networking, network-scripts
其中ifcfg-eth0,和ifcfg-eth1分别为:
DEVICE=eth0
BOOTPROTO=none
HWADDR=***
IPV6INIT=no
IPV6_AUTOCONF=no
ONBOOT=yes
DNS1=***
DNS2=***
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
NM_CONTROLLED=no
NETMASK=255.255.255.0
IPADDR=***
GATEWAY=***
TYPE=Ethernet
DEVICE=eth1
HWADDR=***
BOOTPROTO=dhcp
ONBOOT=no
USERCTL=no
PEERDNS=yes
IPV6INIT=no
NM_CONTROL |
|
l********0 发帖数: 283 | 7 有一台服务器A
操作系统采用CentOS 5.3,双网卡,一个网卡连接外网,一个网卡连接本地switch
这个switch没有外网连接,只是连接了A和另外12台服务器节点(想配置为cluster系统)
eth0:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=34:13:8B:F5:D7:26
ONBOOT=yes
TYPE=Ethernet
eth1:
DEVICE=eth1
BOOTPROTO=none
HWADDR=03:18:5B:F8:D3:07
ONBOOT=no
NETMASK=255.255.254.0
IPADDR=192.168.1.13
GATEWAY=192.168.1.254
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
每个网卡单独启用的使用,都分别是好的
但是如果同时启动的话,eth0就失去作用,就是说不能连接外网,但是eth1可以用,可
以连接那12台节点
我想让他们同时起作用,可以连接外网,又可以连接另外12台节点
该如何配置?
这个问题已经困扰我好几天了,期待大家的帮助,谢谢 |
|
w*s 发帖数: 7227 | 8 hi, under /etc/sysconfig/network-scripts/ifcfg-eth0
case 1, eth0 is up after reboot
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.50.181.135
NETMASK=255.255.252.0
case 2, eth0 is NOT up after reboot
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
DHCP server is running fine, any hints pls ? |
|
w*s 发帖数: 7227 | 9 it does look like arp issue.
but in this embedded arm board,
we use busybox for arp,
if i do "arp -d ipaddr -i eth0", the entry is still there.
if i do "ifconfig eth0 down", the entry will be gone.
but this is too heavy.
any suggestions why "arp -d" is not working ?
is this the bug in the ethernet driver ?
(btw, i tried to move cable in linux desktop, the arp entry
is gone as soon as i move the cable.) |
|
p*****2 发帖数: 21240 | 10 下边是docker的code。用的是switch,没有像版上几个go大牛说的用if呀。
func netAddrToIP4(a net.Addr) net.IP {
switch v := a.(type) {
case *net.UDPAddr:
if ip := v.IP.To4(); ip != nil {
return ip
}
case *net.IPAddr:
if ip := v.IP.To4(); ip != nil {
return ip
}
}
return nil
} |
|
f*****e 发帖数: 5177 | 11 半个小时前还好好的。现在突然就没有connection了。
signal没有问题,network information显示
GSM "in servivce",
GPRS "diconnected"
Network type "HSPA, unknown"
Ping IpAddr "failed. IP addr not reachable"
Ping Hostname "pass"
换了一张sim card也是一样。 |
|
m*d 发帖数: 7658 | 12 先安装archlinux
instruction在这里
http://archlinuxarm.org/platforms/armv6/pogoplug-provideov3
如果不想写用arch的uImage覆盖nand
可以这样
Following steps 7 and 8 above, partition and format the drive (using the
correct /dev device, highly likely NOT sda). Download and extract the root
filesystem tarball onto the new ext3 partition as the root user, not just
sudo. Create a file at /usr/local/mac_addr and place in it your Pro's MAC
address (its on the bottom of the unit) in the format XX:XX:XX:XX:XX:XX.
Safely umount ... 阅读全帖 |
|
m*d 发帖数: 7658 | 13 先安装archlinux
instruction在这里
http://archlinuxarm.org/platforms/armv6/pogoplug-provideov3
如果不想写用arch的uImage覆盖nand
可以这样
Following steps 7 and 8 above, partition and format the drive (using the
correct /dev device, highly likely NOT sda). Download and extract the root
filesystem tarball onto the new ext3 partition as the root user, not just
sudo. Create a file at /usr/local/mac_addr and place in it your Pro's MAC
address (its on the bottom of the unit) in the format XX:XX:XX:XX:XX:XX.
Safely umount ... 阅读全帖 |
|