显示标签为“Internet”的博文。显示所有博文
显示标签为“Internet”的博文。显示所有博文

2015年4月5日星期日

How to perform a TCP ping

Normal ping using ICMP, not TCP nor UDP.

But sometimes we want to check whether a port is open or not.
For example I establish a new service on my server but find out client cannot get access.
That's time when we should use TCP ping.

So how can we perform TCP ping?

If you are using Windows, you can use tcping, a simple CLI tool brought to you by Eli Fulkerson, which can be downloaded here.

If you are using Linux, then you have multiple useful choices.
The first is nmap.You can use it like this
nmap -p 80 onofri.org
The second is tcpping brought to you by Richard. Click here for tutorial.
There are some other tool can perform TCP ping too, e.g. Hping, Paping.

If you'd prefer web application, there are many websites that offer a bunch of Network tesing tool such as ping, tcping, tracert, etc. Just Google it.

2012年12月8日星期六

从互联网安装Debian(或Ubuntu等Debian系Linux),无需光盘优盘

Install Debian/Ubuntu without any external boot media via Internet 
For my English readers please click here, it will re-direct you to Ubuntu Community Documents:

这篇HOWTO讲述的是一种仅需加载越20MB核心文件,然后整个安装过程在互联网进行的,Ubuntu/Debian安装方法。
这种方法甚至不需要你刻录CD启动盘或者USB启动盘,也不需要你有另外一台电脑作为局域网启动伺服,因为除了本地约20MB的核心文件,其他的一切都直接下载自互联网。这个方法也适合其他Debian系Linux操作系统甚至更多Linux操作系统。本教程假设你的电脑已经安装有Linux系统或者Microsoft Windows XP,这样你可以无需任何Grub启动盘。如果你的电脑是全新的,或者现有系统已经崩溃,则可能需要一张Grub引导盘。

其他可用方法:
如果你的电脑暂时不具备互联网介入条件,或者你的电脑没有现有的系统,则不建议采用此种办法安装。你可以考虑硬盘安装或者光盘安装抑或是优盘安装。

安装步骤:
1. 在Ubuntu/Debian的软件源下载合适的linux核心文件和initrd初始化RAMDISK。
(以下参考地址假设你安装Ubuntu/Debian当前稳定版本,你使用i386计算机)
Debian请在浏览器打开:
http://mirrors.163.com/debian/dists/stable/main/installer-i386/current/images/netboot/debian-installer/i386/
Ubuntu请在浏览器打开:
http://mirrors.163.com/ubuntu/dists/quantal/main/installer-i386/current/images/netboot/ubuntu-installer/i386/
发现了没有,Ubuntu和Debian其实是非常相像的。如果你希望安装64位版本,或者一些老版本,你可以从网易开源软件镜像开始一级一级的往下找,就照葫芦画瓢就行。
你当然可以使用其他镜像源,例如中国科大的开源软件镜像站点,支援IPv6访问。
下载其中的linux文件(有些发行版可能是vmlinuz)以及initrd.gz文件,并保存到你电脑磁盘第一个分区的根目录。

2. 确定你的电脑有可用的Grub引导管理器
如果你现有的系统是Linux,并且已经安装有Grub,那么你可以跳过这一步。如果你安装的是Microsoft Windoes XP,请下载Grub4dos,将他解压缩到你的C盘根目录,确定你的C盘根目录下存在grldr文件以及boot文件夹。请在我的电脑中,点击工具菜单,选择文件夹选项,你需要设置显示系统文件以及显示隐藏文件。你现在可以在你的C盘发现一个boot.ini文件,请右键单击他点击属性,取消勾选他的只读选项,并打开他。将TIMEOUT值修改为大于0的数字,例如5,并且在其最后追加一行:
复制代码
  1. C:\grldr="START GRUB4DOS"
保存并退出,记得重新设置该文件为只读的哈。注意这个方法并不适合Vista或以上版本的Windows。

3、重启电脑并进入Grub手动引导模式
现在重启你的电脑。如果你原先的系统是Linux,那么你当然会直接进入Grub界面,如果你先前的系统是WinXP,那么你现在可以在你的操作系统选单中找到一项START GRUB4DOS,选择启动他进入GRUB。注意,如果你先前的系统是Linux请留意你的Grub版本是0.X还是1.X,WinXP用户无需留意,Grub4dos一定是0.X版本的。
请在当前Grub界面根据提示进入Grub的手动引导界面(Command Line)。可能你的Grub可选系统选单中有一项叫做Command Line,或者可能你需要按C键进入手动模式。
以下操作请注意区分Grub版本:
Grub 2 (版本号为1.X):
复制代码
  1. set root=(hd0,msdos1)
  2. linux   /linux
  3. initrd   /initrd.gz
  4. boot

Grub Lagacy(版本号为0.X):
复制代码
  1. root   (hd0,1)
  2. kernel   /linux
  3. initrd   /initrd.gz
  4. boot
4、Linux安装程序已经启动,请确保你的电脑已经网线(建议是在DHCP下可直接自动配置上网的环境)。并根据屏幕指示进行系统安装。

2011年10月11日星期二

为什么没有IPv5?

其实,IPv5是有的,只不过仅限于实验和过渡,并不会推向市场。请看:

IPv4: Currently used by most network devices. However, with more and more computers accessing the internet, IPv4 IPs are running out quickly. Just like in a city, addresses have to be created for new neighborhoods but, if your neighborhood gets too large, you will have to come up with an entire new pool of addresses. IPv4 is limited to 4,294,967,296 IPs.

IPv5: This is an experimental protocol for UNIX based systems. In keeping with standard UNIX (a computer Operating System) release conventions, all odd-numbered versions are considered experimental. It was never intended to be used by the general public.

IPv6: The replacement for the aging IPv4. The estimated number of unique IPs for IPv6 is 340,282,366,920,938,463,463,374,607,431,768,211,456 (or 2^128).

来自: http://www.whatismyip.com/#ixzz1aR9kgprq