Adsl modem u router mode-u

imam 2 racunara i na jednom od njih koristim ubuntu 8.04. Do prije nekoliko dana sam se mogla normalno konektovati na net, ali posto je bihnet sada uveo neko pravilo da se moze konektovati, tj. da samo jedan racunar moze biti konektovan kada je modem u bridge mode-u, morala sam ga postaviti u router mode. sada na ubuntuu vise ne mogu na net. :frowning: pomoc?

Koji router? Na tom drugom je internet OK ( Windows? ). Hajde daj output komandi:

sudo ifconfig
ping 192.168.1.1 (ovo je gotovo pa standard za routere)
cat /etc/network/interfaces

Router je Paradigm ADSL2/2+, konekcija pppoe. Da, na drugom racunaru imam XP i net radi. Output je sljedeci:

sudo ifconfig

eth0 Link encap:Ethernet HWaddr 00:15:f2:7c:c7:07
inet6 addr: fe80::215:f2ff:fe7c:c707/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:247 (247.0 B) TX bytes:492 (492.0 B)
Base address:0xb800 Memory:dfee0000-dff00000

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:798 errors:0 dropped:0 overruns:0 frame:0
TX packets:798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:40092 (39.1 KB) TX bytes:40092 (39.1 KB)

ping 192.168.1.1
connect: Network is unreachable

auto lo iface lo inet loopback

iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

auto eth0
iface eth0 inet manual

Hajde uradi: sudo gedit /etc/network/interfaces , izbrisi sve sto ima i ubaci ovo:

.

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

allow-hotplug eth0
iface eth0 inet dhcp

Sacuvaj,restartuj i to je to : )

uradila sam. ipak nije to to… ideje?

Hmm… Kako je mreza postavljena na Windows masini ? Jel obtain IP automatic? Jel ukljucen dhcp na routeru? Hajd probaj sudo ifconfig eth0 dhcp

da, IP se dodjeljuje automatski i dhcp je ukljucen, ali sudo kaze da je dhcp unknown host.

Cudno… Hajde onda probaj u onaj interfaces staviti ovo:

The primary network interface

allow-hotplug eth0
iface eth0 inet static
address 192.168.1.65
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.19.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 195.222.32.10
dns-search local.domain

Sacuvaj, uradi /etc/init.d/networking restart te zatim daj output sudo ifconfig komande i sudo route -n

aaaaaaa… postaje grozno… :S

/etc/init.d/networking restart

open: Permission denied

  • Reconfiguring network interfaces… /etc/network/interfaces:11: duplicate option
    ifdown: couldn’t read interfaces file “/etc/network/interfaces”
    /etc/network/interfaces:11: duplicate option
    ifup: couldn’t read interfaces file "/etc/network/interfaces"
    open: Permission denied

                                                                      [fail]  (šmrc..kaze mi da sam fail) 
    

sudo ifconfig

eth0 Link encap:Ethernet HWaddr 00:15:f2:7c:c7:07
inet6 addr: fe80::215:f2ff:fe7c:c707/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:492 (492.0 B)
Base address:0xb800 Memory:dfee0000-dff00000

sudo route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

OK… sudo /etc/init.d/networking restart … mighty sudo :smiley:

i to sam radila. i opet je isto. sorry sto smaram…

Hajde sad kad nece milom hoce silom… ako ovo ne uspije provjeri kablove/mreznu :mrgreen:

Otidji na Windows komp. idi Start>Run>ukucaj cmd>Enter> ukucaj ipconfig>Provjeri da pod gateway stoji 192.168.1.1 i provjeri koja je IP adresa(cini mi se da ovaj Paradigm ima pool od 192.168.1.64-
Vrati se na Ubuntu i kucaj(predpostavimo da XP ima 192.168.1.64 IP adrsu): sudo ifconfig eth0 192.168.1.65
sudo route add default gw 192.168.1.1
sudo gedit /etc/resolv.conf i ubaci sljedece: nameserver 195.222.32.10 , sacuvaj
ping google.ba

:slight_smile:

Super :slight_smile: radi… mada prvo nisam mogla ubaciti ovu posljednju ip adresu. skontala sam onda da mogu u “manual network configuration” ( zamisli, manuelno…) :smiley: upisati tu ip adresu.
puno hvala za pomoc. happy

Super… glad to help :slight_smile: