a wiec tak:
1. ifcfg-eth0
BOOTPROTO='dhcp'
MTU=''
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='HSco.IQxIdIhhuH7'
WIRELESS='no'
BROADCAST='81.190.63.255'
IPADDR='81.190.52.105'
NETMASK='255.255.240.0'
NETWORK='81.190.48.0'
2. resolv.conf
nameserver 194.204.152.34
nameserver 217.96.42.226
nameserver 194.204.159.1
search tpsa aa bb
3. ifconfig:
eth0 Link encap:Ethernet HWaddr 00:20:ED:74:F8:88
inet6 addr: fe80::220:edff:fe74:f888/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xf000
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:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2608 (2.5 Kb) TX bytes:2608 (2.5 Kb)
4. network restart (najpierw dhcp, potem z wpisaniem ip-to kursywą to pomylka)
xx:~ # /etc/init.d/network restart
Shutting down network interfaces:
eth0 done
Setting up network interfaces:
lo done
eth0 (DHCP) . . . . . . . . . . . . . . . no IP address yet... backgrounding. done
xx:~ # /etc/init.d/network restart
Shutting down network interfaces:
eth0 done
Setting up network interfaces:
lo done
eth0 IP/Netmask: 81.190.52.105 / 255.255.240.0 ERROR: Error while excuting:
Command 'ip route replace to default via 81.190.48.0' returned:
RTNETLINK answers: Invalid argument
Configuration line: default 81.190.48.0 - -
done
xx:~ # /etc/init.d/network restart
Shutting down network interfaces:
eth0 done
Setting up network interfaces:
lo done
eth0 IP/Netmask: 81.190.52.105 / 255.255.240.0 done
xx:~ # ping 81.190.48.1
PING 81.190.48.1 (81.190.48.1) 56(84) bytes of data.
From 81.190.52.105: icmp_seq=1 Destination Host Unreachable
From 81.190.52.105 icmp_seq=1 Destination Host Unreachable
From 81.190.52.105 icmp_seq=2 Destination Host Unreachable
From 81.190.52.105 icmp_seq=3 Destination Host Unreachable
From 81.190.52.105 icmp_seq=4 Destination Host Unreachable
From 81.190.52.105 icmp_seq=5 Destination Host Unreachable
From 81.190.52.105 icmp_seq=6 Destination Host Unreachable
Pomocy
