[SOLVED] duplicated ip route

hi, I am not able to find answer.
I am using gnome and network manager.
here is output of ip ro
ip ro
default via 192.168.75.1 dev enp0s25 proto static metric 1024
192.168.75.0/24 dev enp0s25 proto kernel scope link src 192.168.75.11
192.168.75.0/24 dev enp0s25 proto kernel scope link src 192.168.75.11 metric 202
why there are two same route?? is it normal or ...
well, they have different metric, maybe I dont understand correctly but what I need two same route in simple network
thanks
Last edited by jancici (2014-11-20 20:54:55)

The route :
192.168.75.0/24 dev enp0s25 proto kernel scope link src 192.168.75.11 metric 202
comes from dhcpcd.
I switched to dhclient and got :
% ip ro
default via 192.168.1.254 dev enp3s0 proto static metric 1024
192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.100
But currently I can't find how to have one "192.168.1.0/24" route WITH metric…

Similar Messages

  • [SOLVED]port redirect/routing question

    Hi,
    mypc - router - ( INTERNET ) - another pc
                                               - destination pc
    "another pc" and "destination pc" are both connected to the internet via offical ips, but ports <1024 are blocked.
    "another pc" can connect to "destination pc" via ssh (they are in the same network).
    now i would like to connect to "another pc" and get redirected (dont know how) to "destination pc" port 22
    "another pc" can connect to "destination pc" via ssh, but another pc is not my machine and i would prefer not to put my private key on it. also this solution should only work once.
    This works if i want to connect to some machine inside a private lan over a router connected to the inet, but since "another pc" and "destination pc" are in the same network is nat the way to go?
    iptables -t nat -A PREROUTING -p tcp -i ppp0 --dport 222 -j DNAT --to-destination 192.168.10.30:22
    Any ideas?
    greets
    metalfan
    Last edited by metalfan (2007-12-24 17:06:58)

    You need openssh and tsocks
    Run these commands from mypc
    #tsocks configuration
    /etc/tsocks.conf
    server = 127.0.0.1
    #this will start a shell on another, just let it run. port 1080 is the default port...no entry in /etc/tsocks.conf needed
    ssh -D 1080 "another pc"
    #or ssh -l yourloginnameon"another pc" -D 1080 "another pc"    #if its another user on "another pc"
    #on another shell
    tsocks ssh "destination pc"
    took me one day to get this running, thx to Al_Berto@quakenet who solved the mistery.
    greets
    metalfan
    Last edited by metalfan (2007-12-24 17:07:59)

  • [SOLVED] Duplicity getting 'stuck' when attempting to restart a backup

    Hey all,
    After a backup attempt failed partway through (first-time full backup) with this error:
    AsyncScheduler: scheduling task for asynchronous execution
    No handlers could be found for logger "paramiko.transport"
    AsyncScheduler: a previously scheduled task has failed; propagating the result immediately
    AsyncScheduler: task execution done (success: False)
    Backend error detail: Traceback (most recent call last):
    File "/usr/bin/duplicity", line 1391, in <module>
    with_tempdir(main)
    File "/usr/bin/duplicity", line 1384, in with_tempdir
    fn()
    File "/usr/bin/duplicity", line 1354, in main
    full_backup(col_stats)
    File "/usr/bin/duplicity", line 500, in full_backup
    globals.backend)
    File "/usr/bin/duplicity", line 399, in write_multivol
    (tdp, dest_filename, vol_num)))
    File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 151, in schedule_task
    return self.__run_asynchronously(fn, params)
    File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 215, in __run_asynchronously
    with_lock(self.__cv, wait_for_and_register_launch)
    File "/usr/lib/python2.7/site-packages/duplicity/dup_threading.py", line 100, in with_lock
    return fn()
    File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 207, in wait_for_and_register_launch
    check_pending_failure() # raise on fail
    File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 191, in check_pending_failure
    self.__failed_waiter()
    File "/usr/lib/python2.7/site-packages/duplicity/dup_threading.py", line 201, in caller
    value = fn()
    File "/usr/lib/python2.7/site-packages/duplicity/asyncscheduler.py", line 183, in <lambda>
    (waiter, caller) = async_split(lambda: fn(*params))
    File "/usr/bin/duplicity", line 398, in <lambda>
    async_waiters.append(io_scheduler.schedule_task(lambda tdp, dest_filename, vol_num: put(tdp, dest_filename, vol_num),
    File "/usr/bin/duplicity", line 296, in put
    backend.put(tdp, dest_filename)
    File "/usr/lib/python2.7/site-packages/duplicity/backends/sshbackend.py", line 191, in put
    raise BackendException("sftp put of %s (as %s) failed: %s" % (source_path.name,remote_filename,e))
    BackendException: sftp put of /tmp/duplicity-9_jssu-tempdir/mktemp-uqQRIn-42 (as duplicity-full.20120507T060530Z.vol41.difftar
    .gpg) failed: Server connection dropped:
    BackendException: sftp put of /tmp/duplicity-9_jssu-tempdir/mktemp-uqQRIn-42 (as duplicity-full.20120507T060530Z.vol41.difftar
    .gpg) failed: Server connection dropped:
    the process keeps getting stuck when I try to restart it. There's almost no CPU use and no useful error messages. Here's the output (the version and parameters are included) with -v debug:
    Using archive dir: /root/.cache/duplicity/1498ef4c9557164d69523e5aec4c78ce [83/4524]
    Using backup name: 1498ef4c9557164d69523e5aec4c78ce
    Import of duplicity.backends.sshbackend Succeeded
    Import of duplicity.backends.rsyncbackend Succeeded
    Import of duplicity.backends.botobackend Succeeded
    Import of duplicity.backends.webdavbackend Succeeded
    Import of duplicity.backends.hsibackend Succeeded
    Import of duplicity.backends.localbackend Succeeded
    Import of duplicity.backends.ftpsbackend Succeeded
    Import of duplicity.backends.giobackend Failed: No module named gio
    Import of duplicity.backends.ftpbackend Succeeded
    Import of duplicity.backends.cloudfilesbackend Succeeded
    Import of duplicity.backends.u1backend Succeeded
    Import of duplicity.backends.tahoebackend Succeeded
    Import of duplicity.backends.imapbackend Succeeded
    Import of duplicity.backends.gdocsbackend Succeeded
    Main action: inc
    ================================================================================
    duplicity 0.6.18 (February 29, 2012)
    Args: /usr/bin/duplicity --use-agent -vdebug --encrypt-key YYYYYYYY --sign-key XXXXXXX --full-if-older-than 60D --exclude /mn
    t/backup/bfd-training-data --exclude /mnt/backup/fsarchiver --exclude /mnt/backup/media --exclude /mnt/backup/usapparel --asyn
    chronous-upload /mnt/backup scp://[email protected]//backups/homeserver
    Linux homeserver 3.0.29-1-lts #1 SMP PREEMPT Mon Apr 23 09:41:11 CEST 2012 x86_64 AMD Sempron(tm) Processor 3400+
    /usr/bin/python2 2.7.3 (default, Apr 24 2012, 00:00:54)
    [GCC 4.7.0 20120414 (prerelease)]
    ================================================================================
    Using temporary directory /tmp/duplicity-OjWCPd-tempdir
    Registering (mkstemp) temporary file /tmp/duplicity-OjWCPd-tempdir/mkstemp-GZ2ieI-1
    Temp has 490532864 available, backup will use approx 60293120.
    Local and Remote metadata are synchronized, no sync needed.
    41 files exist on backend
    2 files exist in cache
    Extracting backup chains from list of files: ['duplicity-full.20120507T060530Z.manifest.part', 'duplicity-full-signat[51/4524]
    0507T060530Z.sigtar.part', 'duplicity-full.20120507T060530Z.vol1.difftar.gpg', 'duplicity-full.20120507T060530Z.vol2.difftar.g
    pg', 'duplicity-full.20120507T060530Z.vol3.difftar.gpg', 'duplicity-full.20120507T060530Z.vol4.difftar.gpg', 'duplicity-full.2
    0120507T060530Z.vol5.difftar.gpg', 'duplicity-full.20120507T060530Z.vol6.difftar.gpg', 'duplicity-full.20120507T060530Z.vol7.d
    ifftar.gpg', 'duplicity-full.20120507T060530Z.vol8.difftar.gpg', 'duplicity-full.20120507T060530Z.vol9.difftar.gpg', 'duplicit
    y-full.20120507T060530Z.vol10.difftar.gpg', 'duplicity-full.20120507T060530Z.vol11.difftar.gpg', 'duplicity-full.20120507T0605
    30Z.vol12.difftar.gpg', 'duplicity-full.20120507T060530Z.vol13.difftar.gpg', 'duplicity-full.20120507T060530Z.vol14.difftar.gp
    g', 'duplicity-full.20120507T060530Z.vol15.difftar.gpg', 'duplicity-full.20120507T060530Z.vol16.difftar.gpg', 'duplicity-full.
    20120507T060530Z.vol17.difftar.gpg', 'duplicity-full.20120507T060530Z.vol18.difftar.gpg', 'duplicity-full.20120507T060530Z.vol
    19.difftar.gpg', 'duplicity-full.20120507T060530Z.vol20.difftar.gpg', 'duplicity-full.20120507T060530Z.vol21.difftar.gpg', 'du
    plicity-full.20120507T060530Z.vol22.difftar.gpg', 'duplicity-full.20120507T060530Z.vol23.difftar.gpg', 'duplicity-full.2012050
    7T060530Z.vol24.difftar.gpg', 'duplicity-full.20120507T060530Z.vol25.difftar.gpg', 'duplicity-full.20120507T060530Z.vol26.diff
    tar.gpg', 'duplicity-full.20120507T060530Z.vol27.difftar.gpg', 'duplicity-full.20120507T060530Z.vol28.difftar.gpg', 'duplicity
    -full.20120507T060530Z.vol29.difftar.gpg', 'duplicity-full.20120507T060530Z.vol30.difftar.gpg', 'duplicity-full.20120507T06053
    0Z.vol31.difftar.gpg', 'duplicity-full.20120507T060530Z.vol32.difftar.gpg', 'duplicity-full.20120507T060530Z.vol33.difftar.gpg
    ', 'duplicity-full.20120507T060530Z.vol34.difftar.gpg', 'duplicity-full.20120507T060530Z.vol35.difftar.gpg', 'duplicity-full.2
    0120507T060530Z.vol36.difftar.gpg', 'duplicity-full.20120507T060530Z.vol37.difftar.gpg', 'duplicity-full.20120507T060530Z.vol3
    8.difftar.gpg', 'duplicity-full.20120507T060530Z.vol39.difftar.gpg', 'duplicity-full.20120507T060530Z.vol40.difftar.gpg', 'dup
    licity-full.20120507T060530Z.vol41.difftar.gpg']
    File duplicity-full.20120507T060530Z.manifest.part is not part of a known set; creating new set
    File duplicity-full-signatures.20120507T060530Z.sigtar.part is not part of a known set; creating new set
    Ignoring file (rejected by backup set) 'duplicity-full-signatures.20120507T060530Z.sigtar.part'
    File duplicity-full.20120507T060530Z.vol1.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol2.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol3.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol4.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol5.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol6.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol7.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol8.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol9.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol10.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol11.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol12.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol13.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol14.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol15.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol16.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol17.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol18.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol19.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol20.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol21.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol22.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol23.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol24.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol25.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol26.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol27.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol28.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol29.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol30.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol31.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol32.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol33.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol34.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol35.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol36.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol37.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol38.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol39.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol40.difftar.gpg is part of known set
    File duplicity-full.20120507T060530Z.vol41.difftar.gpg is part of known set
    Found backup chain [Sun May 6 23:05:30 2012]-[Sun May 6 23:05:30 2012]
    Last full backup left a partial set, restarting.
    Last full backup date: Sun May 6 23:05:30 2012
    Collection Status
    Connecting with backend: SftpBackend
    Archive dir: /root/.cache/duplicity/1498ef4c9557164d69523e5aec4c78ce
    Found 0 secondary backup chains.
    Found primary backup chain with matching signature chain:
    Chain start time: Sun May 6 23:05:30 2012
    Chain end time: Sun May 6 23:05:30 2012
    Number of contained backup sets: 1
    Total number of contained volumes: 41
    Type of backup set: Time: Num volumes:
    Full Sun May 6 23:05:30 2012 41
    No orphaned or incomplete backup sets found.
    RESTART: Volumes 41 to 42 failed to upload before termination.
    Restarting backup at volume 41.
    Registering (mktemp) temporary file /tmp/duplicity-OjWCPd-tempdir/mktemp-Fx_YTQ-2
    ^CRemoving still remembered temporary file /tmp/duplicity-OjWCPd-tempdir/mktemp-Fx_YTQ-2
    Removing still remembered temporary file /tmp/duplicity-OjWCPd-tempdir/mkstemp-GZ2ieI-1
    INT intercepted...exiting.
    Does anyone have some experience with this? It's a fairly good sized backup (well, for me at least) so I'd really hate to have to start over every time one fails!
    Thanks,
    Scott
    Last edited by firecat53 (2012-05-08 18:23:19)

    Ok, solved-ish. There were actually 3 issues:
    1. There's a problem in the 0.6.18 new python paraminko ssh internals that was preventing it from uploading more than about 1GB at a time, possibly because it's reusing the same ssh connection which some webhosts will kick off after a certain time or amount.
    2. The --num-retries parameter wasn't being read by the ssh backend
    3. There's a bug in some encryption validation code that had to be removed before a 'resume backup' operation would work correctly (it won't read the GPG encryption key correctly).
    So I reverted to 0.6.17 and removed a previously applied patch from the code found here.
    So far it seems to be working. The dev who answered me on Launchpad said that there's a memory leak with 0.6.17 so watch out when doing any backups over ~100GB or so.
    Scott

  • Solved. Travel router WTR54GS sharing one wireless hotspot connection with multiple devices

    Hi, Passing on info I've learned.
    The manual for the WTR54GS mentions being able to "...use multiple devices on a single hotspot account in a coffee shop or airport lounge...". See my original posting, "How to set up a wireless private bubble at paid hotspot? WTR54GS?", which ended in a dead end. I subsequently had a Linksys live chat session and the representative provided the solution. Perhaps worthy to be included in the Wireless FAQ?
    Situation: you have access to a paid hotspot (hotel room, meeting room, etc.) and you want to share the connection with several devices, also wirelessly.
    Solution: the WTR54GS can accept an incoming Internet connection wirelessely and re-broadcast that connection to form your own private bubble or network. (Note the WTR54GS can also accept an incoming Internet connection via Ethernet cable).
    Linksys Live Chat pointed me to these web pages.
    Go to the Linksys Easy Answers page: For a schematic of the concept of "associating the travel router to a hotspot (wirelessly)" search for Easy Answer ID# 4831
    URL for above is http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=4831&p_created=1167963305&p_sid=GmLnq3Zi&p_accessibility=0&p_lva=&p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9NjImcF9wcm9kcz0wJnBfY2F0cz0xNzIxLDE3MjMmcF9wdj0mcF9jdj0yLjE3MjMmcF9zY2ZfbGFuZz0xJnBfcGFnZT0xJnBfc2VhcmNoX3RleHQ9V1RSNTRHUw**&p_li=&p_topview=1
    There is a "configuration simulator" that shows the options for selecting a wired or wireless incoming Internet Type.
    http://linksys.com/ui/files/WTR54GS/1.0_15/Setup-Wireless.htm
    The hotspot has to be "open", that is transmitting an SSID and with no WEP or WPA key. It may have a log-in page accessible via a web browser, this is okay as this will be passed onto the connected device.
    My personal application is to be able to connect a PDA that has a 801.2b wifi to a 801.2g wireless network. I haven't tried it but if this works, it will extend the useful life of my PDA in a "g" environment. Will report back once I find a "g" only environment. Comments?
    -Tony
    Dang, the long URL is making for a really wide message. Is there a fix?
    Message Edited by tony_vancouver on 02-28-2008 02:08 PM
    Message Edited by tony_vancouver on 02-28-2008 02:12 PM

    There are two conditions which must be met in order to use your WTR54GS to "extend" an incoming, wireless internet connection:
    The incoming connection must be unsecured.  You have already covered this point;
    The security settings on your WTR54GS can only be set to "WEP," or to "Disabled."  If you choose "WEP," then you can use either a 40/64-bit, or a 128-bit key.
    If those two conditions have been met, then it works fine -- says the guy who is sharing one paid internet conneciton in his hotel amongst three devices, and with co-workers in nearby rooms.  

  • [Solved] Default interface routing issues

    I have two network interfaces connected to my newly installed ArchLinux server,  one LAN and one WAN connection.  The trouble is that all traffic that is trying to connect to the wan interface gets no response, while the LAN connection work without any issue.
    I am using udev to change my interfaces to lan0 and wan0, and i use netcfg to load the diffrent profiles.
    Lan0 uses a static local ip 192.168.0.118  with 192.168.0.2 as gateway
    Wan0 uses dhcp  with dynamic ip from my ISP.
    When i manually bring down my lan0 interface all my traffic goes through wan0 correctly, and it even responds to external calls.
    So i belive the issue lies somewhere in the local routing?
    I am trying to post all config files needed directly.
    /etc/rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # LANG in /etc/locale.conf takes precedence
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="sv_SE.UTF-8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK="UTC"
    TIMEZONE="Europe/Stockholm"
    KEYMAP="sv-latin1"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MODULES=()
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="yes"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="weed-devil"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    # interface=eth0
    # address=192.168.0.2
    # netmask=255.255.255.0
    # broadcast=192.168.0.255
    # gateway=192.168.0.1
    # DHCP example
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    #interface=eth0
    #address=
    #netmask=
    #broadcast=
    #gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    NETWORKS=(sluggy local)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If you are sure nothing else touches your hardware clock (such as ntpd or
    # a dual-boot), you might want to enable 'hwclock'. Note that this will only
    # make a difference if the hwclock program has been calibrated correctly.
    # If you use a network filesystem you should enable 'netfs'.
    DAEMONS=(syslog-ng !ufw !network net-profiles @alsa crond dbus sshd lircd sensors mysqld @ddclient @hddtemp httpd samba stunnel sabnzbd sickbeard)
    /etc/network.d/sluggy
    CONNECTION='ethernet'
    DESCRIPTION='A basic dhcp ethernet connection using iproute'
    INTERFACE='wan0'
    IP='dhcp'
    ## for DHCPv6
    #IP6='dhcp'
    ## for IPv6 autoconfiguration
    #IP6='stateless'
    /etc/network.d/local
    CONNECTION='ethernet'
    DESCRIPTION='A basic static ethernet connection using iproute'
    INTERFACE='lan0'
    IP='static'
    ADDR='192.168.0.118'
    GATEWAY='192.168.0.2'
    output of route -nl
    Destination Gateway Genmask Flags Metric Ref Use Iface
    0.0.0.0 192.168.0.2 0.0.0.0 UG 0 0 0 lan0
    0.0.0.0 85.24.137.1 0.0.0.0 UG 203 0 0 wan0
    85.24.137.0 0.0.0.0 255.255.255.0 U 203 0 0 wan0
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 lan0
    I have had this server running Ubuntu for the past 2 years with the same setup on the NIC's and there everything worked, so I guess i have become a little lazy.
    *EDIT* Updated my post with "code" block instead of quote
    Last edited by kurri (2011-11-01 22:07:14)

    kurri, please edit your post.
    When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
    like this
    It makes the code more readable and more convenient to scroll through.

  • [***SOLVED***] Simple Linux Router Help

    I have a computer with two network interface cards.
    One card is connected to a computer called server.
    the other card is connected to another computer called client.
    This is the way its setup
    server computer                                    router computer                                       client computer
    eth0  <--------------------------> eth0                                          eth1 <----------------------> eth0
    192.168.1.50                          192.168.1.25          192.168.1.200                         192.168.1.100
    From the client
    I can ping 192.168.1.25 and 192.168.1.200 but I can't ping 192.168.1.50
    From the server
    I can ping 192.168.1.25 and 192.168.1.200 but I can't ping 192.168.1.100
    My question is how can I ping the server computer from the client computer and vice versa.
    My previous solution was not the best, its as follows:
    I got communication between the client and server computers working through the router computer before by using the following:
    The libpcap packet capture libraries to capture packets from the server on the router's eth0.
    Then my code injects the captured packet on to the router's eth1 to send it to the client.
    The libpcap packet capture libraries to capture packets from the client on the router's eth1.
    Then my code injects the captured packet on to the router's eth0 to send it to the server.
    The problem with this solution is that it really, really kills the network speed. For example all the network interface cards are 100/10 Mbps speed and do about 45 - 60 Mbps between server and router, router and client but when I use the libpcap code to connect the server and client the max speed between the server and client is 410Kbps.
    Last edited by ADT (2007-08-15 08:56:34)

    Assuming netmask 255.255.255.0 everywhere, you're using the same subnet on both sides, so you need bridging, not routing. Find a linux bridging howto and take it from there.
    Alternatively, change one of the subnets, and go for the routing option (overkill for this setup, IMO, but it's your choice). AFAIR there's a wiki page about setting up an Arch based router.
    Lone_Wolf's switch suggestion is by far the best idea, though.

  • Dual nic's, dual networks, setting this up? [SOLVED]

    Hi,
    I have a laptop with wireless (rt2500) and wired nic. Both work fine, but I am in a situation where I need to connect the wireless to one network, and the wired to another network. (Wireless to the internet, and wired to small home network). Im not trying to bridge them. I can set this up pretty easily, just using DHCP for both the wireless and wired, but after 15 minutes to an hour, requests I make on the wireless side try going over the wired network.
    I tried fix it by:
    route add -net 10.18.0.0 netmask 255.255.0.0 ra0
    route add -net 192.168.1.0 netmask 255.255.255.0 eth0
    but still after a half hour or so the requests I make on wireless (internet) try going over the wired interface.
    Any ideas on how to keep these two interfaces associated with their respective networks?
    Thanks
    Last edited by DeltaXFX (2007-03-16 16:19:52)

    I just had an AHA moment and think I solved my problem.
    route -n gives me
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    10.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 ra0
    0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
    0.0.0.0 10.18.0.1 0.0.0.0 UG 0 0 0 ra0
    So both eth0 and ra0 have destinations to the 0.0.0.0 network. Thats no good because only ra0 really goes to the internet. so I just did
    route del -net 0.0.0.0 eth0
    So now
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    10.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 ra0
    0.0.0.0 10.18.0.1 0.0.0.0 UG 0 0 0 ra0
    Only one route for the internet, no more problems

  • Occasional high latency to router via wifi and slo...

    Hi,
    I have 2 problems with my home hub3, I've spoken to bt help who were no help at all!
    1:- intermittent long pings (~200ms for ~5s) over wireless to the router, this isn't solved by changing channels or rebooting router.  I've tested this with different laptops and operating systems, and doesn't seem to be a distance / interference problem.  This causes problems with online gaming mainly.
    2:- occasional very slow transfer rates between two devices connected via ethernet, this is solved by rebooting router and doesn't happen with a different (non bt) router.  This causes problems with streaming videos.
    Thanks for any help!
    Tom

    Hi Jolly_green_giant,
    Welcome to the forum and thank you for posting. If you send me in your details using the link found in the "about me" section of my profile, I can take a look at this to see if I can find out what the problem is.
    Thanks
    Paddy
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Task Flow Based On Input Parameter

    I am using JDev 11.1.1.6.
    I have an app that uses a Task Flow with "ExecuteWithParams" to get the parameter from a URL and display the appropriate records on a page.
    I do this by using a Bind Variable on the VO that corresponds to the InputParameter on the ExecuteWithParams control.
    What I would like to do is flow to a different page, depending on the parameter used in the URL.
    Example:
    If param in URL is "?TEAM=1" then I would go to the TEAM page and display records for TEAM 1.
    If param in URL is "?REGION=3" then I would go to the REGION page and display records for REGION 3.
    Thanks,
    Ray

    This could probably be solved using a router activity or a custom method as the default activity in the Task Flow. Then outcome of the router/method, can easily route to the desired TF activity based on an input parameter. E.g. if parameter is "region" route to executeRegionIteratorWithParams, which in turn will "flow" to displayRegions view activity.

  • Loss of default gateway - to auto-shutdown radio

    Hi,
    I need a solution where, if an access point looses its connection to its default gateway, that it automatically shuts the radio down. And when the default gateway is again available, the radio is automatically turned on again. By connection, I do not just mean that the AP FastEthernet port link status changes.
    Some kind of functionality like the 'track rtr reachability' that probes the default gateway, and takes action if the default gateway cannot be reached.
    How to, if at all possible...
    Problem is that wireless equipment will connect to the access point if the radio is up but the access point does not have access to its default gateway (for some error reason other than the local Ethernet link, but also that...)
    Thanks
    Johnny

    Hi,
    unfortunately that does not solve this problem:
    Router (def. gw for WAP)
    Switch 1
    Switch 2
    Wireless Access Point (WAP)
    If switch 1 is down or if the link from switch 1 to the router is down, then the WAP radio will still be up. I need for it to handle a loss to its default gateway, not just its local ethernet wire.
    Tx
    Johnny

  • Apple ID could not sign in

    Every time I sign in on my ipad, Iphone and itunes, I always get this: Could Not Sign In. Your Apple ID or password is incorrect. I tried to go to iforgot.apple.com, and follow the instructions for password retrieval. I typed my user ID correctly, and got the instruction: Password Reset Options. I choose: Reset by Email. There, I assume the password resetting should be confirmed by email. But I never get the email from Apple. I tried it on all my devices, but still no email. My Apple ID is a not the form of email address. It was created on January 2006. Now, I use my other account to sign in to this discussion forum .
    I don't know why my Apple ID seems to be missing, or deleted. I don't remember I delete it. Just a few hours before this happened, I can sign in to itunes. But now, I can't do anything. Everything on my apple devices is connected to that account. And I bought everything on itunes with that account too... What should I do? Please help.

    Solved, Open your router page on your browser and enter your primary dns in your iOS device. It worked then.

  • Lost all ability to connect to internet - Please Help!!

    This evening, opened my MBP 2010 and found that my networks will not connect to internet.  It says I'm connected to wifi but nothing will load, no apps that require network connection, safari, nothing.  Tried ethernet cable which says connected with DHCP when I'm looking at network prefs, but no connection of any kind.  I have a Verizon Fios router with Time Capsule (most recent version from Jan 2012) creating a separate network and a AEBS and Airport Express extending that network throughout the house.  No problems of any significance (that couldn't be solved with turning router on and off) in the past.  Of note, my wife's Macbook Air (which I'm typing this email on) is having NO problems connecting to either the Verizon network or the Airport network.  On my MBP, I get neither.  I have tried deleting the networks from Network Prefs and adding back but they just will not connect.  Is there a way to completely reset my network prefs and start over?  Do I need to do that?  How can I have one Macbook that connects to everything and another that can't connect to anything.  Both are running 10.7.4 and have similar software installed.  I tried booting in SAFE MODE and get the same results.  I even get the exclamation mark inside the wifi symbol on my menu bar for both of them.  WHAT THE HECK is going on??!!?  PLEASE HELP!!!

    OK, I understand that you can connect to the Verizon router using an Ethernet connection and wireless does not work.
    I also understand that you have deleted all of the network listings in System Preferences > Network > WiFi > Advanced.
    Please check again to make sure that all of the listings are cleared out. Be sure to click OK and then Apply when you do this.
    Next, open Macintosh HD > Applications > Utilities > KeyChain Access
    Look for any listing with the name of the Verizon wireless network. Click on that listing to highlight it, then click the Delete key on your Mac.
    Then do the same for any of the wireless networks that are provided by the Apple devices.
    Close KeyChain Access and restart your Mac.
    See if you can log on to the Verizon wireless network now. You should be asked for the password to connect, if you successfully deleted the old networks and the listings for the password in KeyChain Access.

  • Need query to add duplicates

    Guys,
    I've been trying to solve the shortest route problem and got stuck in calculating the cumulative distance in a hierarchial query. I've got some idea to deal with it like
    sum(distance) over (order by level rows level preceding)But in order for this to happen I may be needing duplicate records. Anyway, let me get straight to what I need.
    I have table data like this.
    col1      col2       rown
    1         10         1
    2         20         2
    3         30         3
    4         40         4
    4         70         5
    5         80         6
    3         90         7
    5         95         8I want the result to be like this.
    col1      col2
    1         10
    2         20
    3         30
    4         40
    1         10
    2         20
    3         30
    4         70
    5         80
    1         10
    2         20
    3         90
    1         10
    2         20
    3         30
    4         70
    5         95Please observe that when filling with duplicates, if there are 2 or more occurances of the same, it should be the latest(maximum rown in all). For eg: To fill for 5---95, there are two 3s (3---30 and 3---90) and two 4s(4---40 and 4---70). The latest need to be taken meaning 3---90 and 4---70 are to be taken. I hope I made it clear. Please let me know if you need any further information.
    Cheers
    Sarma.

    Thank you Etbin.
    It was line # 16 that was missing. Now it looks okay.
    SQL> select finaal.col1, finaal.col2
      2  from (select col1, col2, rown,
      3               row_number() over (partition by col1, rown
      4                                  order by col2 desc) rn
      5        from ( select b.col1 col1,
      6                      b.col2 col2,
      7                      a.rn rown
      8               from sample b, (select col1, col2, rown, rn
      9                               from (select col1, col2, rown, rownum rn,
    10                                            lag(col1) over (order by rown) prev
    11                                     from sample
    12                                    )
    13                               where col1 - prev <> 1
    14                              ) a
    15               where b.col1 < a.col1
    16               and b.rown <= a.rown
    17               union all
    18               select col1,
    19                      col2,
    20                      rown
    21               from sample
    22             )
    23         ) finaal
    24  where finaal.rn = 1
    25  order by finaal.rown, finaal.col1
    26  /
          COL1       COL2
             1         10
             2         20
             3         30
             4         40
             1         10
             2         20
             3         30
             4         70
             5         80
             1         10
             2         20
             3         90
             1         10
             2         20
             3         90
             4         70
             5         95
             1         15
             1         15
             2         20
             3         90
             4         80
             1         15
             2         20
             3         90
             4         80
             5         95
             6         99
             1         15
             2         20
             3         33
             1         15
             2         20
             3         90
             4         80
             5         97
    36 rows selected.
    SQL>Cheers
    Sarma.

  • Lines Sync's but no download

    Hi,
    ADSL 2+ connection, very stable line
    I have a Billion 7800DXL router, which initially works great, however after about 3 days (varys but never longer than a week), the router stops downloading, even though the router is saying that it is still synced. If I reboot or factory reset the router the problem is not solved, the router continues to sync, but won't download. If I connect my Homehub, it sync's and downloads immediately.
    After much investigation, and reading forums, I seem to have found the problem. It appears that the login details get confused between BT and the router, and there is no download because Iam not logged in. If I login as bt_test@startup_domain, with no password, and then disconnect, and then login as [email protected], with BT as the password, the problem is solved, and the router will then work perfectly for a number of days before the problems start all over again.
    Does anybody know what is causing this, and if there is a solution?
    Thanks

    One thing to try is to reset sync history then set itunes to replace all information on the iphone.
    Here is an article from the apple support website that might help out.
    http://docs.info.apple.com/article.html?path=iSync/2.0/en/isc39.html

  • How to configure broadcast ip permanently

    hi
    I have facing problem regarding configuration of broadcast IP
    to resolve this ether i have to use ifconfig command for every restart or manually enter ip,netmask & broadcast ip in \etc\hostname.hme0 file in this case my default gateway will also change then i have to use route add command to solve it, again route add also for current session only
    my configuration
    /etc/inet/hosts 10.205.42.2
    /etc/inet/ipnodes 10.205.42.2
    /etc/inet/netmasks 255.255.255.0
    /etc/inet/defaultrouter 10.205.42.1
    In this configuration output is
    IP 10.205.42.2 netmask 255.255.255.0 broadcast 10.205.42.255 default gateway 10.205.42.1
    Hear i want broadcast IP 10.255.255.255
    When i change /etc/hostname.hme0 with
    10.205.42.2 newmask 255.255.255.0 broadcast 10.255.255.255
    In this case my output is
    IP 10.205.42.2 netmask 255.255.255.0 broadcast 10.255.255.255 default gateway 127.0.0.1
    Hear i want default gateway 10.205.42.1
    plz help to configar this output permanently
    IP 10.205.42.2 netmask 255.255.255.0 broadcast 10.255.255.255 default gateway 10.205.42.1

    Actually in my organisation vlan is configured with 10.205.XX.XXX 255.255.255.0 if i use 10.205.42.255 broadcast ip, i only communicate with 10.205.42.xxx network. i need to communicate with 10.205.xx.xxx network.

Maybe you are looking for

  • Feb/Mar 2015 Update: OneDrive for Business Error "Incompatible Office products are installed on your machine."

    After Installing the Feb 2015 Updates for Office 2013 ProPlus via ClicktoRun, OneDrive no longer opens with the error message: "Sorry, we can't perform this action. Incompatible Office products are installed on your machine. If you have an administra

  • Value mapping in ABAP Versus ID

    Hi Gurus,   As Value mapping can be done using ABAP mapping and Also in Integration Directory... Can Any one tell me what is the exact difference Between these..... Regards, Sainath chutke

  • How to whitelist mail sender?

    My sister's e-mails have been ending up in my junk mail folder quite often of late.  We often share short messages with links, and she's one of the few people whose links are virtually always of interest to me.  Even messages in reply to messages I o

  • CHARM - avoid developer login to client 000 when import to QA system

    Hi Gurus. I've activated a new system to use CHARM for import. When testing the import to QA, the logon screen to QA 000 is displayed.  I already applied SAP Note 913232 which suggests that the TMSADM user (with profile S_TMW_OPERA) in QA 000 can be

  • Contact Center script question

    Hello,      I have a script for a call center application which has different menus and submenus including CSQs in some branches of the menus, I configured everything and all is fine. the customer came up with a new requirement which is when a caller