Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Где находяться роуты чтобы их удалить?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Wert
n00b
n00b


Joined: 14 Apr 2004
Posts: 37

PostPosted: Mon Dec 06, 2004 9:12 pm    Post subject: Где находяться роуты чтобы их уд Reply with quote

При наборе команды route выдает список роутов, каких я не прописывал
и один из них не удаляется..
Back to top
View user's profile Send private message
mango123
Apprentice
Apprentice


Joined: 07 Dec 2004
Posts: 266
Location: msk

PostPosted: Tue Dec 07, 2004 12:34 am    Post subject: Reply with quote

Что у тебя прописано в /etc/conf.d/net.eth0 ?
Короче, давай конфигурацию сети.

С уважением, MNG.
Back to top
View user's profile Send private message
vobla
n00b
n00b


Joined: 25 Mar 2004
Posts: 20

PostPosted: Tue Dec 07, 2004 5:54 pm    Post subject: Re: Где находяться роуты чтобы их Reply with quote

Wert wrote:
При наборе команды route выдает список роутов, каких я не прописывал
и один из них не удаляется..


тебя захачили
Back to top
View user's profile Send private message
devil_ua
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jun 2004
Posts: 128
Location: Kiev, Ukraine

PostPosted: Tue Dec 07, 2004 8:53 pm    Post subject: Re: Где находяться роуты чтобы их Reply with quote

Wert wrote:
При наборе команды route выдает список роутов, каких я не прописывал
и один из них не удаляется..

Это роуты которые выдаються ядром.
какой ты неможешь удалить?
случайно не этот?
Code:

loopback        localhost       255.0.0.0       UG    0      0        0 lo

Если да, то ты его не удалишь :)
_________________
Web developer & High-load application deployer
Web Site: http://simonov.me
E-Mail: alex@simonov.me
Back to top
View user's profile Send private message
GreenDragon
Guru
Guru


Joined: 31 Jul 2003
Posts: 319

PostPosted: Wed Dec 08, 2004 3:22 pm    Post subject: Re: Где находяться роуты чтобы их Reply with quote

devil_ua wrote:
Wert wrote:
При наборе команды route выдает список роутов, каких я не прописывал
и один из них не удаляется..

Это роуты которые выдаються ядром.
какой ты неможешь удалить?
случайно не этот?
Code:

loopback        localhost       255.0.0.0       UG    0      0        0 lo

Если да, то ты его не удалишь :)

Сразу случай из чата
Code:
[11:32] ОНО: пипл, дайте ай-пи какого-нить лоха!!
[11:32] Кто-то: 127.0.0.1
[11:32] ОНО: пасиба!
[11:33] ОНО: щас он подохнет
[11:33] ** ОНО вышло из чата
:P :D
Back to top
View user's profile Send private message
Wert
n00b
n00b


Joined: 14 Apr 2004
Posts: 37

PostPosted: Wed Dec 08, 2004 8:03 pm    Post subject: Reply with quote

Net mne propisivaetsya route srazu posle komandi /etc/init.d/net.eth0 start
U menya DHCP. Viglyadit on tak

10.0.0.1 * 255.255.255.0 UG 0 0 0 eth0
A mne nado 4tobi maska bila 255.255.0.0
Back to top
View user's profile Send private message
viy
Veteran
Veteran


Joined: 03 Jul 2004
Posts: 1580
Location: Riga, Latvia

PostPosted: Thu Dec 09, 2004 6:52 am    Post subject: Reply with quote

Что у тебя в /etc/conf.d/net?

GreenDragon со своим чатом получает 10 баллов! :lol:
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Thu Dec 09, 2004 8:10 am    Post subject: Reply with quote

Wert wrote:
Net mne propisivaetsya route srazu posle komandi /etc/init.d/net.eth0 start
U menya DHCP. Viglyadit on tak

10.0.0.1 * 255.255.255.0 UG 0 0 0 eth0
A mne nado 4tobi maska bila 255.255.0.0

тогда и используй не дхцп, а назначай ip вручную с нужной маской(тока такой ip чтобы он никому по дхцп не выдался)(или переконфигури дхцп).
Кстати если остальным выдаются ip по дхцп, то у тебя могут быть проблемы связи с ними, тк вероятнее всего у вас получатся разные броадкасты, так что еще может быть что тебе на самом деле надо добавить туда роут через твой гейтвей... объясни поподробнее как устроена сеть...
Back to top
View user's profile Send private message
Wert
n00b
n00b


Joined: 14 Apr 2004
Posts: 37

PostPosted: Thu Dec 09, 2004 1:56 pm    Post subject: Reply with quote

Set' ustroena tak:
moya 10.0.0.1 255.255.255.0
ewe 2 podseti 10.0.1.0 10.0.2.0 (toest' posuti 10.0.0.0 255.255.0.0)

i ewe odna set' 172.16.0.0 255.255.0.0

esli ya sebe propisivay static route :

*************************************************
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="10.0.0.223 broadcast 10.0.0.255 netmask 255.255.0.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="-H"

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
gateway="eth0/10.0.0.1"
*************************************************************************************
to vse ok
a esli :
*********************************************************

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="10.0.0.223 broadcast 10.0.0.255 netmask 255.255.0.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
dhcpcd_eth0="-H"

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/10.0.0.1"
*********************************************************************************************
to pri starte eth0
poyavlyaetsya route
10.0.0.0 * 255.255.255.0 eth0
a mne nado 4tobi maska bila 255.255.0.0
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Thu Dec 09, 2004 2:06 pm    Post subject: Reply with quote

тогда судя по всему тебе надо не маску менять, а добавить маршруты. Если связь с этими сетями через geteway, то надо прописать роуты до этих подсетей через него. Если связь с этими сетями напрямую, то и роуты надо прописать напрямую...
тоесть если через шлюз, то route add -net 10.0.0.0/16 gw <your_gateway_ip> если напрямую, то так route add -net 10.0.0.0/16 dev eth0
и соответственно в тех сетях должен быть прописан аналогичный роут до тебя
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum