linux常用命令2
Sh代码
Last login: Sat Sep 10 14:57:04 2011 from 192.168.0.142
[root@oplinux ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:3A:22:CA
inet addr:192.168.91.128 Bcast:192.168.91.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe3a:22ca/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:221 errors:0 dropped:0 overruns:0 frame:0
TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36945 (36.0 KiB) TX bytes:20636 (20.1 KiB)
Interrupt:67 Base address:0x2000
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:2576 errors:0 dropped:0 overruns:0 frame:0
TX packets:2576 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3710212 (3.5 MiB) TX bytes:3710212 (3.5 MiB)
[root@oplinux ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.91.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.91.2 0.0.0.0 UG 0 0 0 eth0
[root@oplinux ~]# cat /etc/sysconfig/network-scripts/ifcfg-
ifcfg-eth0 ifcfg-lo
[root@oplinux ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 80c970 [PCnet32 LANCE]
DEVICE=eth0
ONBOOT=yes
#HWADDR=00:0C:29:3A:22:CA
#IPV6ADDR=
#IPV6PREFIX=
HWADDR=00:0c:29:3a:22:ca
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
BOOTPROTO=dhcp
[root@oplinux ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.91.2
[root@oplinux ~]# cat /etc/host.conf
order hosts,bind
[root@oplinux ~]# cat /etc/sysc
相关新闻>>
- 发表评论
-
- 最新评论 更多>>