Hi,
excuse me for stupid question, but I got totally confused...
LAN1 connected to a PC, IP 192.168.1.213
WiFi received by a notebook, IP 192.168.3.213
(IP's succesfully assigned by dnsmasq)
WAN connected to SMC Barricade, its LAN port is 192.168.2.1, WAN is
a.b.c.238 (it is probably so stupid that I want to hide details, it is a
public IP address)
When I log as [EMAIL PROTECTED], I can ping to PC (from 192.168.1.1), I
can ping to notebook, I can ping to 192.168.2.1, I can ping to a machine
on the Internet.
When I run ping at the PC, I can ping to notebook, I can ping
192.168.2.1, but when I ping a machine on the Internet, I get
From 192.168.2.1: icmp_seq=1 Redirect Host(New nexthop: a.b.c.237)
and I can't seriously connect (SSH and so) to any machine on The
Information Superhighway.
Symmetrically, when I run ping at the notebook, I can ping to PC, I can
ping 192.168.2.1, but not further.
NTP doesn't want to work (everything unreachable), but strangely I can
SSH to the Asus 192.168.2.222 from yet another machine connected to
SMC's another port (192.168.2.154).
Syslog was willing to send something (one message during its restart
though) to an external machine.
Also, when I do S40network restart, the lines
vconfig add eth0 0
vconfig add eth0 1
produce:
vconfig: socket or ioctl error for add: Invalid argument
No clue why this is happening and how to fix it.
...and BTW: why syslogging is so silent?
ip address show
---------------
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:18:f3:3b:6a:31 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 40:10:18:00:00:2d brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:18:f3:3b:6a:31 brd ff:ff:ff:ff:ff:ff
inet 192.168.3.1/24 scope global eth2
5: eth0.0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
link/ether 00:18:f3:3b:6a:31 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 scope global eth0.0
6: eth0.1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
link/ether 00:18:f3:3b:6a:31 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.222/24 scope global eth0.1
ip route show
-------------
192.168.3.0/24 dev eth2 src 192.168.3.1
192.168.2.0/24 dev eth0.1 src 192.168.2.222
192.168.1.0/24 dev eth0.0 src 192.168.1.1
default via 192.168.2.1 dev eth0.1
/etc/network/interfaces
-----------------------
auto lo
iface lo inet loopback
# LAN ports
auto eth0.0
iface eth0.0 inet static
address 192.168.1.1
netmask 255.255.255.0
switch-ports 1 2 3 4 5*
# WAN port
auto eth0.1
iface eth0.1 inet static
address 192.168.2.222
netmask 255.255.255.0
switch-ports 0 5
gateway 192.168.2.1
# WLAN with WPA-PSK
auto eth2
iface eth2 inet static
address 192.168.3.1
netmask 255.255.255.0
switch-ports 5
wireless-type broadcom
...
iptables -L
-----------
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
/etc/ntpd.conf
--------------
# Addresses to listen on
listen on 0.0.0.0
# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
servers pool.ntp.org
/etc/rc.conf
------------
#!/bin/sh
# set variables service=YES|NO (YES to enable, NO to disable)
# set variables service_flags="X" (NO to disable the service)
# note: for flags, X can be empty
network=YES # network
crond=NO # crond
syslogd=YES # syslogd
syslogd_flags="-C 16" # syslogd_flags
#syslogd_flags="-C 16 -R 192.168.2.200:514 -m 2" # syslogd_flags
ezipupdate=NO # ezipupdate
firewall=NO # iptables
asterisk=NO # asterisk
ntpd=YES # openntpd
ntpd_flags="-s" # openntpd
dns_dhcp=NO # dnsmasq
ssh=YES # dropbear
ssh_opts="-g" # dropbear
_______________________________________________
freewrt-users mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-users