易截截图软件、单文件、免安装、纯绿色、仅160KB

linux添加路由

linux添加路由
http://baikgd.blog.163.com/blog/static/35402495200972111353827/
服务器ip(eth0)
[root@localhost net]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:E3:9A:15
inet addr:172.18.3.205 Bcast:172.18.3.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee3:9a15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4776 errors:0 dropped:0 overruns:0 frame:0
TX packets:3348 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:439384 (429.0 KiB) TX bytes:390425 (381.2 KiB)
Interrupt:11 Base address:0x1400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:254 errors:0 dropped:0 overruns:0 frame:0
TX packets:254 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22128 (21.6 KiB) TX bytes:22128 (21.6 KiB)
查看原始路由信息
[root@localhost net]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.18.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
==========================================================
添加默认网关
[root@localhost net]# route add default gw 172.18.3.50
[root@localhost net]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.18.3.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 172.18.3.50 0.0.0.0 UG 0 0 0 eth0
=======================================================
添加一个ip(eth0:1)
[root@localhost net]# ifconfig eth0:1 192.168.168.119 netmask 255.255.255.0 up
[root@localhost net]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:E3:9A:15
inet addr:172.18.3.205 Bcast:172.18.3.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee3:9a15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5071 errors:0 dropped:0 overruns:0 frame:0
TX packets:3569 errors:0 dropped:0 overrun


相关文档:

Linux设备模型之input子系统详解

一:前言
最近在研究android的sensor driver,主要是E-compass,其中用到了Linux input子系统.在网上也看了很多这方面的资料,感觉还是这篇分析的比较细致透彻,因此转载一下以便自己学习,同时和大家分享!
(这篇博客主要是以键盘驱动为例的,不过讲解的是Linux Input Subsystem,可以仔细的研究一下!)
键盘驱动将检 ......

Linux平台上动态链接库的创建与加载

        在读jvm代码时,学习了读取动态链接库的方法。下面就.so文件的创建和读取做一个简单的总结。
1.创建.so文件
add.h
 #ifndef ADD_H
#define ADD_H
int add(int arg1,int arg2);
#endif

add.c
#include "add.h"
int add(int arg1,int arg2)
{
return ......

Linux下Shorewall防火墙安装与配置方法

环境说明:本机只有一张网卡,使用静态IP上网
    命令:apt-get install shorewall ubuntu会自动的给你安装好,但是shorewall没有配置
也没有启动
    「1」首先cp /usr/share/doc/shorewall/examples/one-interface/* /etc/shorewall
    「2」修改/etc/shorewall/shor ......

linux目录架构 [自用]

linux目录架构 
/       根目录 
/bin         常用的命令   binary   file   的目錄 
/boot       存放系统启动时必须读取的档案,包括核心   (kernel)   在内 
          /boot/gru ......

linux的文件系统认识(2)

如果你正在为linux分区空间不足而苦恼时,请你一定要往下看。
linux LVM(logical volumes management),这个时linux中的逻辑卷管理软件,可以在开机情况下重新划分分区大小。
LVM允许一组不同的块设备(硬盘,分区,磁盘阵列...)组合到一起成为一个大存储设备,这就是卷组(volume group)。
下面我们来开始建立一个卷组 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号