Code: Select all
$ ifconfig eth0 up
Code: Select all
$ ifconfig eth0 192.168.0.2
Code: Select all
$ route add default gw 192.168.0.1 eth0
Code: Select all
nameserver 208.67.222.222
nameserver 208.67.220.220
Moderator: Urednik
Code: Select all
$ ifconfig eth0 up
Code: Select all
$ ifconfig eth0 192.168.0.2
Code: Select all
$ route add default gw 192.168.0.1 eth0
Code: Select all
nameserver 208.67.222.222
nameserver 208.67.220.220
Code: Select all
$ traceroute 74.125.43.105
Code: Select all
$ ping 74.125.43.105
Code: Select all
$ route
Code: Select all
$ ifconfig eth0 | grep 'inet addr'
Code: Select all
$ traceroute 74.125.43.105
traceroute 74.125.43.105
traceroute to 74.125.43.105 (74.125.43.105), 30 hops max, 38 byte packets
1 192.168.0.1 (192.168.0.1) 0.155 ms 0.270 ms 0.177 ms
2 * * *
3 * * *
4 * * *
Code: Select all
$ ping 74.125.43.105
ping 74.125.43.105
PING 74.125.43.105 (74.125.43.105) 56(84) bytes of data.
--- 74.125.43.105 ping statistics ---
119 packets transmitted, 0 received, 100% packet loss, time 117988ms
Code: Select all
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Code: Select all
$ fconfig eth0 | grep 'inet addr'
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
Code: Select all
$ ifconfig eth0 | grep 'inet addr'
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
Da na masini 1 radi internet i ovo sve kuckam sa njebranko wrote: Da li na masini1 radi internet normalno? Ako radi onda je do "mojih" podesavanja.
Da li na masini1 kad izvrsis ifconfig dobijes i ppp0?
Code: Select all
eth0 Link encap:Ethernet HWaddr 00:1f:c6:10:e7:a8
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21f:c6ff:fe10:e7a8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4088 errors:0 dropped:0 overruns:0 frame:0
TX packets:4188 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:610563 (596.2 KiB) TX bytes:780440 (762.1 KiB)
Interrupt:27 Base address:0xe000
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:214 errors:0 dropped:0 overruns:0 frame:0
TX packets:214 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11312 (11.0 KiB) TX bytes:11312 (11.0 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.238.112.184 P-t-P:10.238.112.254 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1488 Metric:1
RX packets:42841 errors:0 dropped:0 overruns:0 frame:0
TX packets:38750 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:45384559 (43.2 MiB) TX bytes:4216052 (4.0 MiB)
wlan0 Link encap:Ethernet HWaddr 00:4f:6a:00:87:d0
inet6 addr: fe80::24f:6aff:fe00:87d0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43675 errors:0 dropped:0 overruns:0 frame:0
TX packets:39569 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:46357855 (44.2 MiB) TX bytes:5805698 (5.5 MiB)
wmaster0 Link encap:UNSPEC HWaddr 00-4F-6A-00-87-D0-65-74-00-00-00-00-00-00-00-00
UP BROADCAST 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Code: Select all
$ ifconfig eth1 up
Code: Select all
$ ifconfig eth1 192.168.0.1
Code: Select all
$ echo 1 >/proc/sys/net/ipv4/ip_forward
Code: Select all
$ iptables -P INPUT ACCEPT
Code: Select all
$ iptables -P FORWARD ACCEPT
Code: Select all
$ iptables -P OUTPUT ACCEPT
Code: Select all
$ iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
Code: Select all
$ iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
Code: Select all
$ ifconfig eth0 up
Code: Select all
$ ifconfig eth0 192.168.0.2
Code: Select all
$ route add default gw 192.168.0.1 eth0
Code: Select all
nameserver 208.67.222.222
nameserver 208.67.220.220
Code: Select all
$ ifconfig eth0 up
Code: Select all
$ ifconfig eth0 192.168.0.1
Code: Select all
$ echo 1 >/proc/sys/net/ipv4/ip_forward
Code: Select all
$ iptables -P INPUT ACCEPT
Code: Select all
$ iptables -P FORWARD ACCEPT
Code: Select all
$ iptables -P OUTPUT ACCEPT
Code: Select all
$ iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
Code: Select all
$ iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Code: Select all
$ ifconfig eth0 up
Code: Select all
$ ifconfig eth0 192.168.0.2
Code: Select all
$ route add default gw 192.168.0.1 eth0
Code: Select all
nameserver 208.67.222.222
nameserver 208.67.220.220
Users browsing this forum: No registered users and 4 guests