komdat@komdat-Lenovo-Product:~$ sudo su

[sudo] password for komdat:
root@komdat-Lenovo-Product:/home/komdat# mii-tool
SIOCGMIIREG on eth0 failed: Input/output error
SIOCGMIIREG on eth0 failed: Input/output error
eth0: negotiated 100baseTx-FD flow-control, link ok
root@komdat-Lenovo-Product:/home/komdat# ifconfig eth0 192.168.7.1 netmask 255.255.255.0
root@komdat-Lenovo-Product:/home/komdat# ifconfig eth0:2 192.168.8.1 netmask 255.255.255.0
root@komdat-Lenovo-Product:/home/komdat# pico /proc/sys/net/ipv4/ip_forward
root@komdat-Lenovo-Product:/home/komdat# route -n
Kernel IP routing table
Destination

Gateway

Genmask

Flags Metric Ref

Use Iface

192.168.7.0

0.0.0.0

255.255.255.0 U

0

0

0 eth0

192.168.8.0

0.0.0.0

255.255.255.0 U

0

0

0 eth0

root@komdat-Lenovo-Product:/home/komdat# ifconfig
eth0

Link encap:Ethernet HWaddr c8:9c:dc:62:e2:05
inet addr:192.168.7.1 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::ca9c:dcff:fe62:e205/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:221 errors:0 dropped:0 overruns:0 frame:0
TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49301 (49.3 KB) TX bytes:29597 (29.5 KB)
Interrupt:20 Memory:fe700000-fe720000

2 KB) wlan0 Link encap:Ethernet HWaddr ac:81:12:a5:cc:12 inet6 addr: fe80::ae81:12ff:fea5:cc12/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:1326 errors:0 dropped:0 overruns:0 frame:0 TX packets:1378 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:136322 (136.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:31 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2252 (2.168.7.5 KB) root@komdat-Lenovo-Product:/home/komdat# ping 192.255.2 PING 192.7.0.168.7.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:20 Memory:fe700000-fe720000 lo Link encap:Local Loopback inet addr:127.8.1 Bcast:192.0.2: icmp_req=1 ttl=64 time=3.168.35 ms .168.eth0:2 Link encap:Ethernet HWaddr c8:9c:dc:62:e2:05 inet addr:192.3 KB) TX bytes:166596 (166.1 Mask:255.0.8.0.2 KB) TX bytes:2252 (2.255.7.2 (192.2) 56(84) bytes of data. 64 bytes from 192.255 Mask:255.168.168.

192.719/1.7.2: icmp_req=5 ttl=64 time=0.2 PING 192.128 ms .168.8.64 bytes from 192. 9 received.933/3.2: icmp_req=2 ttl=64 time=0.2 (192. 2 received.8. 0% packet loss.8.8.609 ms ^X64 bytes from 192.168.168. 64 bytes from 192.7.2: icmp_req=7 ttl=64 time=0.593/0.7.168.168.729 ms 64 bytes from 192.7.2: icmp_req=8 ttl=64 time=0.168.7.2: icmp_req=4 ttl=64 time=0.168.975/1.2 ping statistics --9 packets transmitted.7.8.652 ms 64 bytes from 192.168.7.168.168. time 1001ms rtt min/avg/max/mdev = 0. 0% packet loss.168.2: icmp_req=1 ttl=64 time=2.97 ms 64 bytes from 192.719 ms ^C --.168.168.168.2: icmp_req=9 ttl=64 time=0.2: icmp_req=2 ttl=64 time=0.610 ms ^C --.2 ping statistics --2 packets transmitted.2) 56(84) bytes of data.7.2: icmp_req=3 ttl=64 time=0.607 ms 64 bytes from 192.632 ms 64 bytes from 192.2: icmp_req=6 ttl=64 time=0.858 ms root@komdat-Lenovo-Product:/home/komdat# ping 192. time 8002ms rtt min/avg/max/mdev = 0.7.847/2.192.593 ms 64 bytes from 192.8.357/0.616 ms 64 bytes from 192.168.

Sign up to vote on this title
UsefulNot useful