学习部门经理的配置路由

archermind@archermind10554:~$ ifconfig

eth0 Link encap:以太网 硬件地址 44:87:fc:77:e9:c4

inet 地址:192.168.19.35 广播:192.168.19.255 掩码:255.255.255.0

inet6 地址: fe80::4687:fcff:fe77:e9c4/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1

接收数据包:17888 错误:0 丢弃:0 过载:0 帧数:0

发送数据包:7151 错误:0 丢弃:0 过载:0 载波:0

碰撞:0 发送队列长度:1000

接收字节:9791427 (9.7 MB) 发送字节:3383224 (3.3 MB)

中断:17

lo Link encap:本地环回

inet 地址:127.0.0.1 掩码:255.0.0.0

inet6 地址: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 跃点数:1

接收数据包:88 错误:0 丢弃:0 过载:0 帧数:0

发送数据包:88 错误:0 丢弃:0 过载:0 载波:0

碰撞:0 发送队列长度:0

接收字节:11784 (11.7 KB) 发送字节:11784 (11.7 KB)

archermind@archermind10554:~$ su

密码:

Added user root.

root@archermind10554:/home/archermind# ifconfig eth0 192.168.0.2 netmask 255.255.255.0

root@archermind10554:/home/archermind# ping 192.168.0.1

PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=3.57 ms

64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=0.567 ms

^C

--- 192.168.0.1 ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1001ms

rtt min/avg/max/mdev = 0.567/2.073/3.579/1.506 ms

root@archermind10554:/home/archermind# cd /etc/sysctl.

sysctl.conf sysctl.d/

root@archermind10554:/home/archermind# cd /etc/sysctl.

sysctl.conf sysctl.d/

root@archermind10554:/home/archermind# cd /etc/sysctl.d/

10-console-messages.conf 10-zeropage.conf

10-network-security.conf README

root@archermind10554:/home/archermind# cd /etc/sysctl.d/

10-console-messages.conf 10-zeropage.conf

10-network-security.conf README

root@archermind10554:/home/archermind# cd /etc/net

netscsid.conf network/ networks

root@archermind10554:/home/archermind# cd /etc/net

netscsid.conf network/ networks

root@archermind10554:/home/archermind# cd /etc/network

network/ networks

root@archermind10554:/home/archermind# cd /etc/network/i

if-down.d/ if-pre-up.d/ interfaces

if-post-down.d/ if-up.d/

root@archermind10554:/home/archermind# cd /etc/network/i

if-down.d/ if-pre-up.d/ interfaces

if-post-down.d/ if-up.d/

root@archermind10554:/home/archermind# cd /etc/network/interfaces

.adobe/

.amsn/

.android/

.bash_history

.bash_logout

.bashrc

.bogofilter/

.cache/

.camel_certs/

.compiz/

.config/

.dbus/

Desktop/

.dmrc

Downloads/

.eclipse/

.esd_auth

.evolution/

examples.desktop

.fontconfig/

.gconf/

.gconfd/

.gitconfig

root@archermind10554:/home/archermind# cd /etc/network/interfaces

.adobe/

.amsn/

.android/

.bash_history

.bash_logout

.bashrc

.bogofilter/

.cache/

.camel_certs/

.compiz/

.config/

.dbus/

Desktop/

.dmrc

Downloads/

.eclipse/

.esd_auth

.evolution/

examples.desktop

.fontconfig/

.gconf/

.gconfd/

.gitconfig

root@archermind10554:/home/archermind# cd /etc/network/interfaces

bash: cd: /etc/network/interfaces: 不是目录

root@archermind10554:/home/archermind# vim /etc/network/interfaces

程序“vim”已包含在下列软件包中:

* vim

* vim-gnome

* vim-tiny

* vim-gtk

* vim-nox

请尝试:apt-get install <选定的软件包>

root@archermind10554:/home/archermind# vi /etc/network/interfaces

root@archermind10554:/home/archermind# vi /etc/network/i

if-down.d/ if-pre-up.d/ interfaces

if-post-down.d/ if-up.d/

root@archermind10554:/home/archermind# /etc/init.d/network

.adobe/

.amsn/

.android/

.bash_history

.bash_logout

.bashrc

.bogofilter/

.cache/

.camel_certs/

.compiz/

.config/

.dbus/

Desktop/

.dmrc

Downloads/

.eclipse/

.esd_auth

.evolution/

examples.desktop

.fontconfig/

.gconf/

.gconfd/

.gitconfig

root@archermind10554:/home/archermind# /etc/init.d/network stop

bash: /etc/init.d/network: 没有那个文件或目录

root@archermind10554:/home/archermind# cd /etc/init.d/

root@archermind10554:/etc/init.d# ls

acpid hwclock reboot

acpi-support hwclock-save rsync

alsa-mixer-save irqbalance rsyslog

anacron kerneloops saned

apache2 killprocs screen-cleanup

apparmor lm-sensors sendsigs

apport module-init-tools single

atd networking skeleton

avahi-daemon network-interface smbd

binfmt-support network-interface-security speech-dispatcher

bluetooth network-manager stop-bootlogd

bootlogd nmbd stop-bootlogd-single

brltty ondemand udev

console-setup pcmciautils udev-finish

cron plymouth udevmonitor

cups plymouth-log udevtrigger

dbus plymouth-splash ufw

dmesg plymouth-stop umountfs

dns-clean pppd-dns umountnfs.sh

failsafe-x procps umountroot

fancontrol pulseaudio unattended-upgrades

gdm rc urandom

grub-common rc.local wpa-ifupdown

halt rcS x11-common

hostname README

root@archermind10554:/etc/init.d# net

net netkit-ftp netscsid netstat

netcat net.samba3 net-snmp-config

root@archermind10554:/etc/init.d# net

net netkit-ftp netscsid netstat

netcat net.samba3 net-snmp-config

root@archermind10554:/etc/init.d# cd network

networking network-interface-security

network-interface network-manager

root@archermind10554:/etc/init.d# cd network

networking network-interface-security

network-interface network-manager

root@archermind10554:/etc/init.d# cd network-

network-interface network-manager

network-interface-security

root@archermind10554:/etc/init.d# cd network-manager

acpid network-manager

acpi-support nmbd

alsa-mixer-save ondemand

anacron pcmciautils

apache2 plymouth

apparmor plymouth-log

apport plymouth-splash

atd plymouth-stop

avahi-daemon pppd-dns

binfmt-support procps

bluetooth pulseaudio

bootlogd rc

brltty rc.local

console-setup rcS

cron README

cups reboot

dbus rsync

.depend.boot rsyslog

.depend.start saned

.depend.stop screen-cleanup

dmesg sendsigs

dns-clean single

failsafe-x skeleton

root@archermind10554:/etc/init.d# route add default gw 192.168.0.1

root@archermind10554:/etc/init.d# cat /etc/resolv.conf

# Generated by NetworkManager

nameserver 192.168.100.101

root@archermind10554:/etc/init.d# ping www.sina.com.cn

PING newsnj.sina.com.cn (202.102.75.163) 56(84) bytes of data.

^C64 bytes from 202.102.75.163: icmp_seq=1 ttl=54 time=6.66 ms

--- newsnj.sina.com.cn ping statistics ---

1 packets transmitted, 1 received, 0% packet loss, time 0ms

rtt min/avg/max/mdev = 6.662/6.662/6.662/0.000 ms

root@archermind10554:/etc/init.d#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值