ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] nmap and vlans and troubles
@ 2005-12-22 16:56 Vladimir Cherednichenko
  2005-12-23  9:52 ` Vladimir Cherednichenko
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir Cherednichenko @ 2005-12-22 16:56 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

Всем привет, надеюсь написал по адресу :)
Возникла такая проблема:
На сервер Master 2.4 подняты вланы, они работат нареканий нет, 
используются net-scripts. Один из vlan-интерфейсов указан как дефолтный 
в мир. Но когда пытаюсь nmap-ом просканить любой какойнибудь хост то
  получаю следующее:
$ sudo nmap -e vlan20 1.2.3.1

Starting nmap 3.55 ( http://www.insecure.org/nmap/ ) at 2005-12-21 11:19 EET
Failed to find interface eth0 mentioned in /proc/net/route

QUITTING!

даже опция -е не помогает.

Как победить, кто нибудь стыкался с такой ситуацией ?

Настройки сети:

$ cat /etc/sysconfig/vlan
# VLAN subsystem

# Change this to yes if you want VLANS.
DOT1Q_VLANS=yes

# VLAN name types:
#       VLAN_PLUS_VID           = vlan0005
#       VLAN_PLUS_VID_NO_PAD    = vlan5
#       DEV_PLUS_VID            = eth0.0005
#       DEV_PLUS_VID_NO_PAD     = eth0.5
VLAN_NAMING=VLAN_PLUS_VID_NO_PAD

$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=zzz.xxx.xxx
DOMAINNAME=xxx.xxx
GATEWAY=1.2.3.1


$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
IPADDR=0.0.0.0
ONBOOT=yes


$ cat /etc/sysconfig/network-scripts/ifcfg-vlan20
DEVICE=vlan20
VLAN_TRUNK_IF=eth0
BOOTPROTO=static
IPADDR=1.2.3.2
NETMASK=z.z.z.z
ONBOOT=yes

[che@radius che]$ cat /etc/sysconfig/network-scripts/ifcfg-vlan21
DEVICE=vlan21
VLAN_TRUNK_IF=eth0
BOOTPROTO=static
IPADDR=5.5.5.5
NETMASK=y.y.y.y
ONBOOT=yes

$ sudo ip r
1.2.3.0/28 dev vlan20  proto kernel  scope link  src 1.2.3.7
5.5.5.0/24 dev vlan21  proto kernel  scope link  src 5.5.5.5
0.0.0.0/8 dev eth0  scope link
127.0.0.0/8 dev lo  scope link
default via 1.2.3.1 dev vlan20

$ sudo ip r del 0.0.0.0/8 dev eth0
$ sudo ip r
1.2.3.0/28 dev vlan20  proto kernel  scope link  src 1.2.3.7
5.5.5.0/24 dev vlan21  proto kernel  scope link  src 5.5.5.5
127.0.0.0/8 dev lo  scope link
default via 1.2.3.1 dev vlan20

$ sudo nmap -e vlan20 1.2.3.1

Starting nmap 3.55 ( http://www.insecure.org/nmap/ ) at 2005-12-21 11:22 EET
Failed to find interface eth0 mentioned in /proc/net/route

QUITTING!
-- 

WBR, Vladimir Cherednichenko
R.E.D Team | Admin
Ukraine | Kiev


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-28 14:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-22 16:56 [Sysadmins] nmap and vlans and troubles Vladimir Cherednichenko
2005-12-23  9:52 ` Vladimir Cherednichenko
2005-12-23 10:04   ` Peter V. Saveliev
2005-12-23 11:27   ` Anton Kvashin
2005-12-23 12:03     ` Vladimir Cherednichenko
2005-12-28 14:48       ` Vladimir Cherednichenko

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git